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 <bwal...@gmail.com>:

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, jmun...@his.com 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to