• 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: Getting a NSView pointer from a nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting a NSView pointer from a nib


  • Subject: Re: Getting a NSView pointer from a nib
  • From: Daniel Braun <email@hidden>
  • Date: Fri, 28 Apr 2006 22:02:50 +0200


Le 28 avr. 06 à 21:39, Ondra Cada a écrit :

Well... without loading runtime, the NIB would not be too useable, would it?
(Sorry, could not resist :))

I meant programatically :) !

Open question : how do I release all objects loaded (here I can easily send a release to nibView, but not to e.g. controllers present in nib. Should i add outlet to all objects in nib file so i can release them ? (not yet tryed)

If there's a small number of objects, easiest to outlet them all. Otherwise, you have to use a more elaborate API which gives you the list of all the root objects (like NSNib).

ok, thanks. I guess instantiateNibWithOwner:topLevelObjects:should do the job.


In my experience, the most usual reason is the design. Kind of, just like you spearate your code into a number of sources though you could write one monster .m, you separate your GUI into a number of NIBs, though you could preapre one monster NIB.

Agree for for big/professional application, I will even add in that case that it is (i guess) not possible to merge nib file with cvs or svn, thus requiring locking for edition, which can be another strong motivation to split GUI in several NIB.


Daniel _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Getting a NSView pointer from a nib (From: Milen Dzhumerov <email@hidden>)
 >Re: Getting a NSView pointer from a nib (From: Daniel Braun <email@hidden>)
 >Re: Getting a NSView pointer from a nib (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Conditionally enable a button based on NSArrayController's selectedObjects?
  • Next by Date: Re: (no subject) getting an NSUndoManager in an OCUnit test case
  • Previous by thread: Re: Getting a NSView pointer from a nib
  • Next by thread: Re: Getting a NSView pointer from a nib
  • Index(es):
    • Date
    • Thread