Interface Builder and NSImage loading
Interface Builder and NSImage loading
- Subject: Interface Builder and NSImage loading
- From: Steve Israelson <email@hidden>
- Date: Sun, 6 Jan 2008 21:20:30 -0800
I have made a custom button class that loads a named NSImage to
display the button.
I have gone through the process to create a palette for the new
interface builder.
The problem I am having is getting my custom button to draw properly
within IB.
I am guessing the problem is that the named image can not be found.
I can see that if I take one of those images from the Library/Media
palette and drag it into my UI that the NSImageWell can find and
display it properly.
In fact, I see it has a cool popup menu that lists all the images in
the project's resources.
So, 2 questions really:
1) Why can't my drawing code find those named image files?
2) How can I make a popup menu item for specifying an image with my
custom IB plugin?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden