Re: Cocoa Document-based Application Question
Re: Cocoa Document-based Application Question
- Subject: Re: Cocoa Document-based Application Question
- From: Ryan Dingman <email@hidden>
- Date: Sat, 5 Jan 2002 02:59:34 -0800
A nib is really just an object archive. So, most of the objects that
are created from the nib will have their -initWithCoder: method called
rather than any other initializer. -initWithCoder: is called when an
object is being unarchived rather than explicitly created. Try
overriding this method instead.
Hope this helps.
ryan
--
Ryan Dingman
FrontBase, Inc.
email@hidden
On Saturday, January 5, 2002, at 01:00 AM, Josh Morris wrote:
When I created the files for the subclass of
NSBrowser, everything seemed to be going well, but
through extensive debugging (NSLogs and the
ObjectAlloc program... :)), I have found that when I
run my application my NSBrowser's subclass doesn't
execute its init member function (even though I
overrode it!!). Nevertheless, for each instance of the
document, there is a Browser shown of the type I
subclassed! What's going on?
Where did I get this wrong?
All help is appreciated.
-Josh Morris
email@hidden
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.