IBPalette refuses to bring up inspector
IBPalette refuses to bring up inspector
- Subject: IBPalette refuses to bring up inspector
- From: Ricky Sharp <email@hidden>
- Date: Sat, 27 Nov 2004 16:15:23 -0600
I have never been more frustrated with coding than with these
IBPalettes.
I have a simple class derived from NSView named IIProgressBar. There
are four attributes which are objects; two NSColor and two NSString.
No matter what I do, the accessors of the class always return nil.
This ultimately causes grief in the palette's revert: method which is
the reason why the inspector cannot be brought up.
I've verified the following, but still haven't had any success:
(1) I do have the proper initWithFrame: method implemented. It calls
its accessors like so:
[self setBaseColor:[NSColor blackColor]];
(2) I have proper initWithCoder: and encodeWithCoder: methods. I use
keyed coding with unique key names.
(3) Accessorizer was used to generate all accessors. I use the
following pattern:
- (NSColor *)baseColor
{
return [[baseColor retain] autorelease];
}
- (void)setBaseColor:(NSColor *)newBaseColor
{
[newBaseColor retain];
[baseColor release];
baseColor = newBaseColor;
}
(4) I completely trashed the palette inspector's nib and recreated it.
I also verified that the nib itself was in the 10.2 and later format
and that everything was connected correctly.
Finally, I've had success with the following:
* The attributes of IIProgressBar that are scalars (e.g. floats), work
a-ok.
* I have a much more complicated item in my palette which is a custom
NSControl/NSCell combo. The inspector for these items work a-ok.
So I really don't know what is going on. Sorry if I'm being vague, but
after double-checking and triple-checking, I just can't find anything
wrong. I think I'll have to file a DTS incident on this one.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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