• 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: Command line tool using NSImage?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command line tool using NSImage?


  • Subject: Re: Command line tool using NSImage?
  • From: Ken Ferry <email@hidden>
  • Date: Sun, 22 Aug 2010 20:36:24 -0700

On Aug 21, 2010, at 11:51 AM, Alastair Houghton <email@hidden> wrote:

> On 21 Aug 2010, at 14:35, Jaime Magiera wrote:
>
>> On Aug 21, 2010, at 5:33 AM, Ken Thomases wrote:
>>
>>> In short, you can't reliably use AppKit (including NSImage) from a daemon or remote shell.
>>
>> Thanks for the link. Interesting read.
>>
>> In short, that's really a bummer. It totally negates a chunk of functionality from my framework. I'll have to resort to something like keeping a client app running on the server that communicates with the webapp/shell via webservice (a security risk in itself). Also, it removes a lot of functionality from the API. There are a myriad of useful shell/server tools that could be created with that Cocoa functionality.
>>
>> Has anyone heard of Apple coming up with a solution to this conundrum? Or is it Bug Report time? There has to be some way to do it securely.
>
> The particular problem with NSImage is that it uses the window server to provide buffer space for image caches.  That isn't going to work from a non-GUI session.

FYI, that's only true prior to 10.6. NSImage no longer uses windows. See the 10.6 AppKit release notes.

The general issues with use of AppKit without a window server connection still hold.

-Ken
Cocoa Frameworks

>
> I don't see why NSBitmapImageRep wouldn't work, though, OTOH, though Ken is right that using any part of AppKit is potentially problematic.
>
> You can, of course, drop down to the Quartz/Core Image/ImageIO layer(s) and do things there, which should work just fine.
>
> Kind regards,
>
> Alastair.
>
> --
> http://alastairs-place.net
>
>
>
>
> _______________________________________________
>
> 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
_______________________________________________

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: 
 >Command line tool using NSImage? (From: Jaime Magiera <email@hidden>)
 >Re: Command line tool using NSImage? (From: Ken Thomases <email@hidden>)
 >Re: Command line tool using NSImage? (From: Jaime Magiera <email@hidden>)
 >Re: Command line tool using NSImage? (From: Alastair Houghton <email@hidden>)

  • Prev by Date: NSArrayController + KVO + Core Data Question
  • Next by Date: Re: Core Animation. issue with scaling
  • Previous by thread: Re: Command line tool using NSImage?
  • Next by thread: Re: Command line tool using NSImage?
  • Index(es):
    • Date
    • Thread