Re: Unable to load palette?
Re: Unable to load palette?
- Subject: Re: Unable to load palette?
- From: Blake Seely <email@hidden>
- Date: Sat, 19 Nov 2005 17:01:09 -0800
It ends up that it was my fault - I had the resulting framework going
to my /Library/Frameworks folder, and apparently IB couldn't see it
there. When I instead moved the framework to my local ~/Library/
Frameworks (which didn't previously exist) directory, I was able to
load up the palette just fine.
Thanks for the suggestions, Ricky.
-Blake
On Nov 19, 2005, at 3:38 PM, Ricky Sharp wrote:
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