Re: IB Plugin help
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