• 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: using registerImageRepClass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >using registerImageRepClass (From: Chris Meyer <email@hidden>)

  • Prev by Date: Re: dateWithCalendarFormat: problem
  • Next by Date: dealloc strangeness in my custom view
  • Previous by thread: using registerImageRepClass
  • Next by thread: setFrameAutosaveName
  • Index(es):
    • Date
    • Thread