Re: are there any custom IB Palettes?
Re: are there any custom IB Palettes?
- Subject: Re: are there any custom IB Palettes?
- From: Vince DeMarco <email@hidden>
- Date: Wed, 11 Feb 2004 10:48:20 -0800
On Feb 8, 2004, at 3:42 AM, Wade Tregaskis wrote:
Will there be any other custom IB Palettes apart from the one which
comes with the cocoa by default.
Where can i find custom palettes.
Any links to the sites would be more helpful.
I recently wrote an IB palette for a few custom NSView subclasses, and
found it extremely difficult to do properly. In particular, one
subclass would invoke authorisation functions as part of it's normal
operation, which of course you don't want it doing in IB, but there's
no apparent way to differentiate between an instance in IB and in the
final app.
This is easy.
If you look in the IBApplicationAdditions.h header file in the
InterfaceBuilder framework you will notice this IB protocol which the
Application object in IB responds to
- (BOOL)isTestingInterface;
So if NSApp responds to selector isTestingInterface you are in
Interface Builder, if isTestingInterface returns yes, you are testing
the interface.
That and several others issues has forced me to scrap the idea, and
just use a NSCustomView as 'normal'.
Also, the documentation for writing IB palette's is rather slim.
There is several example palette's from Apple, but they someone don't
seem very helpful, in my singular case at least. I'd be interested to
hear of anyone else having more success.
Please file bugs with apple to get more documentation on writing a
palette. we really do need it.
Vince
Wade Tregaskis
-- Sed quis custodiet ipsos custodes?
_______________________________________________
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.
_______________________________________________
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.