• 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: Unable to load palette?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to load palette?


  • Subject: Re: Unable to load palette?
  • From: Ricky Sharp <email@hidden>
  • Date: Sat, 19 Nov 2005 17:38:53 -0600


On Nov 19, 2005, at 4:38 PM, email@hidden wrote:

I'm trying to create an IB palette for a custom NSBox subclass. It builds successfully, but when I try to launch it, I get the following error:

"Open Palette: Unable to load palette CustomView.palette"

Subsequent attempts to open the same palette show the message:

"The Document CustomView.palette could not be opened.

If I go to the IB preferences pane, I see my palette listed, but I can't seem to find any other indication of what went right or wrong. I've checked the console and I don't see anything. I've also just tried building a plain Xcode palette project with no modifications and I get the same message.

Is there any way to figure out what's wrong?

First, make sure your palette.table file is correct. You'll want to minimally set up appropriate values for the Class, NibFile and ExportClasses keys.


I've found that adding NSLog in key methods (e.g. in your palette's init and finishInstantiate) can help track down where you're dying.

Also, make sure that your palette's nib file contains up-to-date headers for your custom classes. To make sure it's refreshed correctly, first remove your palette so IB won't try to load it. Then, open up your palette's nib and drag all your custom view/ control/etc. headers to the nib.

You may also want to put logging in your custom view's initWithFrame: as you may be dying when your palette's nib is loaded and it's contents are initialized.

(And should this message go to the Xcodelist?)

If it's actually the fault of IB, then moving the thread to Xcode would be best.


___________________________________________________________
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


  • Follow-Ups:
    • Re: Unable to load palette?
      • From: Blake Seely <email@hidden>
References: 
 >Unable to load palette? (From: email@hidden)

  • Prev by Date: NSTableView & subclass of NSButtonCell - odd problem?
  • Next by Date: Re: adding Foundation framework to a Carbon application
  • Previous by thread: Unable to load palette?
  • Next by thread: Re: Unable to load palette?
  • Index(es):
    • Date
    • Thread