Re: Erasing drawn content

2010-06-09 Thread Paul Kim
I might as well take a stab at this: - Draw into an NSImage, filling the shapes as fully opaque. - Composite/draw the image into your view with whatever alpha you need via the fraction argument. - Draw the outlines, which I assume you want to be fully opaque, directly into the view. Haven't

Getting an image of an NSTableView row

2009-08-24 Thread Paul Kim
I'm trying to get an image of an NSTableView row. Sounds simple but if you actually try it, you'll find that NSTableView is particularly resistant to this. Here is what I am looking for: - The row must look like how it does to the user. In particular, the background must look like as it

Archiving/unarchiving root objects using instance methods

2009-03-09 Thread Paul Kim
key will work because of backwards compatibility but it would be nice if there were an official way to do this (or some semi-official word that using the root key is ok). Thanks, Paul Kim ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Archiving/unarchiving root objects using instance methods

2009-03-09 Thread Paul Kim
Thanks for the response but your code changes the archive format. I have existing files encoded already with the root key and decodeObject: without a key won't do it. As mentioned before, yes, I can specify the root key but it appears to not be official API. Paul Kim

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-23 Thread Paul Kim
there for a lengthy debate on it, some of which has been already rehashed here. Paul Kim ___ 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

Re: No parent window for sheets?

2008-03-09 Thread Paul Kim
it should do fine in the context I am using it in. Thanks, Paul Kim On Mar 8, 2008, at 7:20 PM, Jim Correia wrote: On Mar 8, 2008, at 4:56 PM, Paul Kim wrote: I always assumed that sheets had a child-parent relationship with the window they were attached to. In my little test, calling

No parent window for sheets?

2008-03-08 Thread Paul Kim
it to the current window. In the end not a big deal. My main concern is that -isSheet seems to leaves the door open for some odd edge cases. Thanks, Paul Kim ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests