What happened to NSDocument's changeCount?

2012-09-16 Thread Jerry Krinock
A couple years ago, I was able to debug Undo issues in documents by reading the _changeCount instance variable of an NSDocument. Although it was not exposed in the API, the offset of this instance variable could be determined by doing a class dump on AppKit. But it seems that, starting with M

Re: What happened to NSDocument's changeCount?

2012-09-16 Thread Kyle Sluder
On Sun, Sep 16, 2012, at 12:47 PM, Jerry Krinock wrote: > But it seems that, starting with Mac OS X 10.7, NSDocument no longer has > a _changeCount. Neighboring instance variables are still in there. This > is kind of surprising. Although I understand that changes were made to > support Auto Sav

Re: Dynamic Method Creation

2012-09-16 Thread Graham Cox
On 15/09/2012, at 2:38 PM, Steve Steinitz wrote: > And for those so inclined, feel free to tell me what a crappy idea the whole > thing is, in general. You asked... > Guys, I'd like to keep this thread focused on Dynamic Method Creation rather > than my design deficiencies But obviously di

Re: Another sandboxing snafu

2012-09-16 Thread Graham Cox
On 16/09/2012, at 12:09 AM, Mike Abdullah wrote: > OK one other thing to try then is running the panel modally while sandboxed. > Does it work then? Do you mean running the NSOpenPanel modally or the parent floating panel? If the latter, it's academic whether that works - there is no useful

Re: Another sandboxing snafu

2012-09-16 Thread Graham Cox
On 17/09/2012, at 9:01 AM, Graham Cox wrote: > If I run the Open panel either using -runModal, or > -beginWithCompletionHandler:, the panel is displayed normally (though > obviously disassociated from the parent window) and operates correctly. I dunno, this is sure a weird one. I've created

Inverted pattern image with CIFilter

2012-09-16 Thread Graham Cox
Hi all, I'm wondering if anyone else has run into this, or if I'm doing something wrong. If I use an image to create a pattern with NSColor, and later that pattern is used to render through a Core Image filter, the pattern image is inverted (flipped). If I do the same using a single image rend