Re: receiving a file on app startup
Re: receiving a file on app startup
- Subject: Re: receiving a file on app startup
- From: "Kyle Sluder" <email@hidden>
- Date: Wed, 6 Feb 2008 08:45:28 -0500
You should really re-read the document architecture documentation.
And the memory management guide. First, by returning @"MainMenu" from
-windowNibName, you are loading your main nib every time you create a
new document. This is not what you want to do; the document docs
explain this concept. Secondly, the array you're getting back from
the NSArchiver is going to be autoreleased from under your feet (I'm
assuming you haven't attempted to work with garbage collection yet).
Please thoroughly read the documentation, and dig deep into Apple's
sample code. You'll do yourself a lot of good.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden