|
|
#1 |
|
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. |
|
|
|
0
|
|
|
#2 |
|
AFAIK there's no way to stop people using 'show package contents'.
What are you trying to hide?
|
|
|
|
0
|
|
|
#3 |
|
Create a legacy CFM app with all resources and so on compiled into a single giant file?
Other than that there is no way.
__________________
Sponsor me to cycle 100Km round London in the dark |
|
|
|
0
|
|
|
#4 |
|
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. |
|
|
|
0
|
|
|
#5 |
|
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. |
|
|
|
0
|
|
|
#6 |
|
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 |
|
|
|
0
|
|
|
#7 |
|
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! |
|
|
|
0
|
|
|
#8 |
|
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 |
|
|
|
0
|
|
|
#9 |
|
^ 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 |
|
|
|
0
|
|
|
#10 | |
|
Quote:
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? |
||
|
|
0
|
|
|
#11 |
|
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. |
|
|
|
0
|
|
|
#12 | |
|
Quote:
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
|
||
|
|
0
|
|
|
#13 | ||
|
Quote:
Quote:
![]() 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. |
|||
|
|
0
|
|
|
#14 |
|
Ok thanks guys. I think i will drop that case, i understand it doesn't really matter.
|
|
|
|
0
|
|
|
#15 |
|
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. |
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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.









Linear Mode

