Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 13, 2006, 01:51 PM   #1
siakus
macrumors newbie
 
Join Date: May 2006
Xcode application (needs help)

I have built an Xcode application project and i don't want the users to see the package content of my .app file by choosing "show package content" from the contextual menu. Is there any way to hide this menu? or Do you have another solution?
thanks.
siakus is offline   0 Reply With Quote
Old Jun 13, 2006, 02:46 PM   #2
caveman_uk
Guest
 
caveman_uk's Avatar
 
Join Date: Feb 2003
Location: Hitchin, Herts, UK
AFAIK there's no way to stop people using 'show package contents'.

What are you trying to hide?
caveman_uk is offline   0 Reply With Quote
Old Jun 13, 2006, 03:02 PM   #3
robbieduncan
Demi-God (Moderator)
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Create a legacy CFM app with all resources and so on compiled into a single giant file?

Other than that there is no way.
robbieduncan is offline   0 Reply With Quote
Old Jun 13, 2006, 03:30 PM   #4
siakus
Thread Starter
macrumors newbie
 
Join Date: May 2006
i am new with the xcode thing.
What is a CFM App? How could i create a CFM app with all ressources? Do you know any related web site?
thanks.
siakus is offline   0 Reply With Quote
Old Jun 13, 2006, 03:58 PM   #5
mduser63
macrumors 68040
 
mduser63's Avatar
 
Join Date: Nov 2004
Location: Salt Lake City, UT
Send a message via AIM to mduser63
Just out of curiosity, why don't you want people to be able to view the contents of your .app folder?
__________________
27" 2.93 GHz Core i7 iMac, 12 GB RAM
2.3 GHz Retina MacBook Pro
12" 1.33 GHz Superdrive PowerBook G4, 1.25 GB RAM
iPhone 5, iPad 3, etc.
mduser63 is offline   0 Reply With Quote
Old Jun 13, 2006, 04:05 PM   #6
Krevnik
macrumors 68020
 
Krevnik's Avatar
 
Join Date: Sep 2003
CFM is the old format used since System 7.1 (whenever PPC support was first introduced), and then abandoned in OS X. OS X will still read CFM PPC apps, but you can't produce a Universal Binary using CFM, and Apple's tools can't be used to create a CFM app on OS X.

Oh, and there is the whole issue that you then have to use the old resources stored in the resource fork, meaning you have to call into the Carbon APIs, you can't use Interface Builder, and localization is by and far, MUCH more time-consuming.

Yeah... uhm... I wouldn't use CFM. You essentially will bind the life-span of the app to that of PPC Macs, and forcing Intel systems to run in emulation just to use the app.

Other than that... there is no way to hide the contents of your bundle from the world. The real question is: What the in the world are you attempting to hide from the end user that you would need to do this?
__________________
Mac Pro (2008), 13" rMBP, iPad 4 LTE, iPhone 5
Krevnik is offline   0 Reply With Quote
Old Jun 13, 2006, 04:38 PM   #7
HiRez
macrumors 68040
 
HiRez's Avatar
 
Join Date: Jan 2004
Location: Western US
Maybe encrypt your resource data, maybe in a zip file format or something, using Java or Python libraries to get it out (or use your own proprietary data file format). Sounds like a major PITA to me though. Another possibility is to perhaps use CoreData and have it store the resources as binary data in a database (not sure if that's actually secure though, or could be made to be). It might help if you at least told us the kind of data you're trying to hide (text, image, password key, etc.).
__________________
Go outside, the graphics are amazing!
HiRez is offline   0 Reply With Quote
Old Jun 15, 2006, 12:44 PM   #8
Krevnik
macrumors 68020
 
Krevnik's Avatar
 
Join Date: Sep 2003
Agreed, depending on the data being hidden, there is a good chance there is a better way to do it, or a better location for it. Just because you might be able to lock out the UI option, doesn't mean it is a good way to lock data away without encryption (which is a PITA if you want to do that to your nibs or the like).
__________________
Mac Pro (2008), 13" rMBP, iPad 4 LTE, iPhone 5
Krevnik is offline   0 Reply With Quote
Old Jun 15, 2006, 01:39 PM   #9
GeeYouEye
macrumors 68000
 
GeeYouEye's Avatar
 
Join Date: Dec 2001
Location: State of Denial
Send a message via AIM to GeeYouEye Send a message via Yahoo to GeeYouEye
^ Not necessarily... you could put the NIB decryption in main.m before letting NSApplication run. Still, I imagine most users might not be too happy about that if it means a longer startup time.
__________________
I bring order to chaos. You are in chaos Windows, you are the contradiction, a bug wishing to be an OS.
Visit Softyards Software
NEW DEFINITION OF GEEK
Like politics, free speech, computers, entertainment, and more? Join us at Wordforge.net
GeeYouEye is offline   0 Reply With Quote
Old Jun 25, 2006, 04:53 PM   #10
gnasher729
macrumors G4
 
gnasher729's Avatar
 
Join Date: Nov 2005
Quote:
Originally Posted by siakus
I have built an Xcode application project and i don't want the users to see the package content of my .app file by choosing "show package content" from the contextual menu. Is there any way to hide this menu? or Do you have another solution?
thanks.
Why would you want to do that?

Since Apple and everyone else ships applications where the user can choose to see the package contents, could you please explain what makes your application so outstandingly different that the user shouldn't be able to do that with your application?
gnasher729 is offline   0 Reply With Quote
Old Jun 25, 2006, 07:17 PM   #11
siakus
Thread Starter
macrumors newbie
 
Join Date: May 2006
In fact i just don't want users to check and modify my nib files. And i have an applescript there also that i want to hide. For the script i put it in a objective C code, so that's fine. but i have no solution for the nib files.
And i have seen some applications on the mac where you can't use the "show package" function. Foe example Microsoft Office Applications.
siakus is offline   0 Reply With Quote
Old Jun 25, 2006, 09:15 PM   #12
savar
macrumors 68000
 
savar's Avatar
 
Join Date: Jun 2003
Location: District of Columbia
Send a message via AIM to savar
Quote:
Originally Posted by siakus
In fact i just don't want users to check and modify my nib files. And i have an applescript there also that i want to hide. For the script i put it in a objective C code, so that's fine. but i have no solution for the nib files.
And i have seen some applications on the mac where you can't use the "show package" function. Foe example Microsoft Office Applications.
Well, I doubt that your nib files are highly-classified trade secrets, so I don't see what's wrong with users modifying them, but there's no reason why you couldn't simply zip up the files, unzip them at runtime, then delete the unzipped files when you're done. It's obnoxious, but if you really want to its possible.

The only apps that can't have their package contents shown are apps that are not packages. These apps are outdated and you shouldn't be developing an app like that.
__________________
Mehce
savar is offline   0 Reply With Quote
Old Jun 26, 2006, 03:12 AM   #13
caveman_uk
Guest
 
caveman_uk's Avatar
 
Join Date: Feb 2003
Location: Hitchin, Herts, UK
Quote:
Originally Posted by siakus
In fact i just don't want users to check and modify my nib files.
Why would they want to do that? Does it really matter? Why don't you spend more time worrying about stuff the user really cares about (like features, ease of use etc) than daft obfuscation that just makes your program more complicated than it needs to be for very little real gain.
Quote:
And i have an applescript there also that i want to hide. For the script i put it in a objective C code, so that's fine.
If I wanted to find your applescript I could find it as a literal string in your binary with a hex editor (or the 'strings' command line program ). What you going to do now? Encrypt it in the binary?

Trust me, there's very little you can hide in an objective-C program. The class headers can be worked out using class-dump and someone could find all those secret files you access using fseventer. Throw in input managers, class posing and the other delights of the objective-C runtime and you're pretty much wasting your time trying to hide stuff without spending a lot of time doing it properly.
caveman_uk is offline   0 Reply With Quote
Old Jun 26, 2006, 08:37 AM   #14
siakus
Thread Starter
macrumors newbie
 
Join Date: May 2006
Ok thanks guys. I think i will drop that case, i understand it doesn't really matter.
siakus is offline   0 Reply With Quote
Old Jun 26, 2006, 08:49 AM   #15
Soulstorm
macrumors 68000
 
Soulstorm's Avatar
 
Join Date: Feb 2005
Location: Menidi, Athens, Greece
As far as the Applescript file is concerned, you can hide it this way:

Compile it as a run-only application. You will still be able to load it with the "load script" command.
__________________
Oramind: Articles, reviews Techlology and Art
If you don't like it, program it.
Soulstorm is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Lets Convince My Dad to get a Mac!! (Need help) FF_productions Buying Tips and Advice 19 Jun 10, 2006 10:03 PM
Simple DOM Scripting question. (need help) radiantm3 Web Design and Development 2 Dec 28, 2005 12:08 AM
Is It Available? (Need Help) DarkNetworks Buying Tips, Advice and Discussion (archive) 40 Sep 19, 2005 06:06 PM
Ventrilo Server On Mac (need help) TreeHugger General Mac Discussion 1 Jan 18, 2005 12:34 PM
At the process of installing AE card (Need Help) iKwak Macintosh Computers 6 Dec 12, 2003 07:31 PM


All times are GMT -5. The time now is 08:17 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC