Re: Getting a NSView pointer from a nib
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