[MacRuby-devel] CVImageBufferRef vs __NSCFType

Steven Parkes smparkes at smparkes.net
Fri Aug 27 06:35:53 PDT 2010


> ptr 
> = Pointer.new("{ProcessSerialNumber=II}"
> )

Thanks. I had tried Pointer.new_with_type (trying to go from examples I found). I don't understand the difference between the two (yet).

> However, please note that this will get the current **application** PSN, which, in case you run the script in Terminal, will be Terminal's PSN, not MacRuby's.

Yeah, I know. I can also get the PSN from NSWorkspace with less hassle. This was just an example since I figure I may have to do this in other places in the future ...

Thanks!


More information about the MacRuby-devel mailing list