• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: are there any custom IB Palettes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: are there any custom IB Palettes?
      • From: Wade Tregaskis <email@hidden>
References: 
 >are there any custom IB Palettes? (From: ayyapu <email@hidden>)

  • Prev by Date: Re: Simple File Data Reading Question
  • Next by Date: Cocoa wizard & gurus, Help!!
  • Previous by thread: Re: are there any custom IB Palettes?
  • Next by thread: Re: are there any custom IB Palettes?
  • Index(es):
    • Date
    • Thread