• 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
Interface Builder and NSImage loading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Interface Builder and NSImage loading
      • From: RICKY SHARP <email@hidden>
  • Prev by Date: Re: Xcode v2.5 no longer compiles project without errors
  • Next by Date: Xib localization
  • Previous by thread: Re: Xcode v2.5 no longer compiles project without errors
  • Next by thread: Re: Interface Builder and NSImage loading
  • Index(es):
    • Date
    • Thread