Re: Custom NSView subclasses not getting init'ed
Re: Custom NSView subclasses not getting init'ed
- Subject: Re: Custom NSView subclasses not getting init'ed
- From: Phil Curry <email@hidden>
- Date: Tue, 9 Mar 2004 17:33:45 -0800
On Mar 9, 2004, at 5:11 PM, Allan Odgaard wrote:
On 10. Mar 2004, at 1:31, Phil Curry wrote:
The other five look like they never got init'ed.
You say that you get 6 initWithFrame? so how can you see that they did
not init? do they show up in the window correctly?
Black rectangles of the appropriate size and location appear in the
window.
When I step thru with the debugger, I see
Variable Value
heatA 0x536830
heatB 0x0
heatC 0x0
specA 0x0
specB 0x0
specC 0x0
after I've seen confirmation of initWithFrame go to the run log.
If I try to access an instance variable for any null StripGraph, I
get no errors, warnings, or crashes.
How do you access the variable? if you do so by sending a message,
then sending a message to nil is a no-op.
Sending a message to change color. Works for heatA but nobody else
since everyone else is null.
What have I forgotten to do to get all the NSView subclasses actually
init'ed?
Where do the null-pointers show up? is it the outlets? in that case
you should probably double-check your Nib file.
The 6 NSView subclasses above are outlets for my controller
_______________________________________________
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.