• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: receiving a file on app startup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >receiving a file on app startup (From: Torsten Curdt <email@hidden>)
 >Re: receiving a file on app startup (From: Adhamh Findlay <email@hidden>)
 >Re: receiving a file on app startup (From: Davide Scheriani <email@hidden>)
 >Re: receiving a file on app startup (From: Torsten Curdt <email@hidden>)
 >Re: receiving a file on app startup (From: Andrew Merenbach <email@hidden>)
 >Re: receiving a file on app startup (From: Davide Scheriani <email@hidden>)
 >Re: receiving a file on app startup (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: NSOutlineView column with checkbox+image+text
  • Next by Date: Re: Apples's code examples... It is me
  • Previous by thread: Re: receiving a file on app startup
  • Next by thread: newbie: question: i have a memory leak: obj-c 2.0: modification of program in "Cocoa with Objective-C"
  • Index(es):
    • Date
    • Thread