Re: using registerImageRepClass
Re: using registerImageRepClass
- Subject: Re: using registerImageRepClass
- From: Christopher Holland <email@hidden>
- Date: Sat, 25 Jan 2003 00:08:21 -0600
On Friday, January 24, 2003, at 09:32 PM, Chris Meyer wrote:
If I use the NSImageRep method registerImageRepClass: to register a
new image rep class, is that available to other applications or is it
only available within the application in which I register it? Is there
any way to register it globally on the system? If there is, does my
application have to be running or is there a way to have the image
type available without my application running?
You need to use the built-in NSImage filter services. Check out the
sample AppKit code: "SimpleImageFilter." Once you have the service
compiled, just drop it in your Library/Services directory and it will
be available to all applications that use NSImage classes correctly.
The example is straight forward so you shouldn't have any problems with
it. Except for the following....which I hope that someone can answer
for me.
I compiled the sample code and dropped it in. My program can read the
images just fine and all is dandy...until I try and quit my program.
Once I do that it simply hangs for a while and finally quits (many
seconds later). Usually I just force quit it.
Anybody know what's going on with it? I shouldn't have to do anything
special in my app (that's the purpose of having filter services) but
maybe the sample has a bug that I'm not aware of.
Christopher Holland
Concept House
<
http://www.concepthouse.com/ >
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.