Re: NSView initWithFrame called twice
Re: NSView initWithFrame called twice
- Subject: Re: NSView initWithFrame called twice
- From: Brian Webster <email@hidden>
- Date: Sun, 11 Aug 2002 17:01:43 -0500
Set a breakpoint in the initWithFrame: method and run it using
the debugger. This will let you see the stack trace where each
call is made. Also, check to see if the method is being called
twice on the same object, or if there are actually two different
objects each being sent the message once.
On Sunday, August 11, 2002, at 02:20 PM, cocoa-dev-
email@hidden wrote:
I have a NSView derived custom view within an NSScrollView. It has the
following initialization method:
- (id) initWithFrame:(NSRect) frameRect
When my program starts the initWithFrame method gets called twice. I
understand that when the nib file is unarchived one init
message is sent to
my custom view but where does the second message come from? Is
it sent from
the NSScrollView and if so how do I prevent this from happening.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.