• 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: IB Plugin help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB Plugin help


  • Subject: Re: IB Plugin help
  • From: email@hidden
  • Date: Sun, 05 Apr 2009 15:17:52 -0400

Namaste!

Is this the proper way to do that:

- (NSImage *)ibDefaultImage
{
NSBundle *myBundle = [NSBundle bundleWithIdentifier:@"com.MyCompany.MyPluginName"];
NSString *someString = [myBundle pathForResource:@"SomePic" ofType:@"png"];
NSImage *someImage = [[[NSImage alloc] initWithContentsOfFile:someString] autorelease];
return someImage;
}


When I ran it, I got the nifty little icon rep of plug-in.

Many Thanks!!!

Peace, Love, and Light,

/s/ Jon C. Munson II


Quoting Brandon Walkin <email@hidden>:

I haven't yet made an IB plugin with a custom formatter, but I'd assume
you change that image the same way you change the image that appears in
the document window. Return your own image in the -ibDefaultImage
method in your integration category.

On 5-Apr-09, at 9:31 AM, email@hidden wrote:

1. How do I change that blue cube (which displays when the textfield is selected) to my graphic (like NSNumberFormatter and NSDateFormatter)?



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >RE:IB Plugin help (From: email@hidden)
 >Re: IB Plugin help (From: Ricky Sharp <email@hidden>)
 >Re: IB Plugin help (From: email@hidden)
 >Re: IB Plugin help (From: Ricky Sharp <email@hidden>)
 >Re: IB Plugin help (From: email@hidden)
 >Re: IB Plugin help (From: email@hidden)
 >Re: IB Plugin help (From: email@hidden)
 >Re: IB Plugin help (From: josh hughes <email@hidden>)
 >Re: IB Plugin help (From: email@hidden)
 >Re: IB Plugin help (From: Brandon Walkin <email@hidden>)

  • Prev by Date: Re: Automating reading classes with InterfaceBuilder
  • Next by Date: NSString and decoding HTML Entities
  • Previous by thread: Re: IB Plugin help
  • Next by thread: Re: IB Plugin help
  • Index(es):
    • Date
    • Thread