How to get the file path to my application

2008-07-30 Thread Randy Canegaly
If I have a Cocoa application named Fred, how do programmatically (in  
Fred's code) get the path to the directory where Fred.app is stored?


Thanks

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


archive only what changed?

2008-07-07 Thread Randy Canegaly
I have an application whose data model is an NSMutableArray with  
elements that could be pointers other NSMutableArrays, much like what  
you would navigate with a NSIndexPath.  I am using NSKeyedArchiver to  
archive the data model to a file.  Right now I archive the entire top  
level array object (and therefore all its parts) to the file using  
archiveRootObject:toFile.
Is it possible to archive only the portion of the data model that  
changed rather than the entire thing every time?  I need the entire  
data model to be archived so that it can be reloaded when the  
application starts but for performance reasons I am interested in  
seeing if it's possible upon a change to the data to only re-archive  
the small part that changed.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]