Re: Identify all open files of current OS X process

2015-02-08 Thread Jerry Krinock
Thank you, Roland. I am using your idea, iterating over fd with > fcntl( fd, F_GETPATH, filePath ) I think that it’s less fragile than what I was thinking of doing, less code, and it works :) On 2015 Feb 07, at 18:59, Roland King wrote: > Well if you can figure out which file descriptors are

Re: Modal Window Failure on 10.10.2

2015-02-08 Thread Graham Cox
> On 9 Feb 2015, at 2:38 pm, Graham Cox wrote: > > a subclass of NSWindow required for modal dialogs On further thought I think that's not true - NSWindow can work modally, but it's usual to make it NSPanel. If you use a plain window, I think there are restrictions on which kinds can be used

Re: Modal Window Failure on 10.10.2

2015-02-08 Thread Graham Cox
> On 9 Feb 2015, at 10:44 am, Charles Jenkins wrote: > > 2015-02-08 16:24:04.159 MyApp[2989:720882] An uncaught exception was raised > 2015-02-08 16:24:04.159 MyApp[2989:720882] Modal session requires modal window Big clue here! In IB, you need to make sure that the window's class is NSPanel

Re: Modal Window Failure on 10.10.2

2015-02-08 Thread Ken Thomases
On Feb 8, 2015, at 5:44 PM, Charles Jenkins wrote: > I updated my OS yesterday, and now my modal window doesn’t work (which > probably means I’m doing it wrong and just got lucky before). > > I created the window by asking XCode to create a subclass of > NSWindowController and making sure the

[OT] Please Drop Binky Melnik A Line

2015-02-08 Thread Michael Crawford
Friends, Binky Melnik was one of the sysops of the CompuServe Macintosh Developers Forum back in the day. She's had some quiet serious health problems the last little while. Fortunately, as a veteran of the US Air Force her medical care is being taken care of by Uncle Sam. If you were ever a fri

Modal Window Failure on 10.10.2

2015-02-08 Thread Charles Jenkins
 I updated my OS yesterday, and now my modal window doesn’t work (which probably means I’m doing it wrong and just got lucky before). I created the window by asking XCode to create a subclass of NSWindowController and making sure the “also create xib” checkbox was checked. Then I designed the U

Re: Identify all open files of current OS X process

2015-02-08 Thread Jonathan Mitchell
> On 7 Feb 2015, at 23:26, Jerry Krinock wrote: > > I need a method which will give me the paths of all files which the current > OS X process (*) has open. Yes, this is for a benevolent hack and no, I am > not sandboxed. > > I’m considering using getpid() and passing the result to /usr/sbin

Re: [CIImageAccumulator image]: getting the BMP representation destroys the image contents

2015-02-08 Thread Sandor Szatmari
> On Feb 6, 2015, at 18:23, Nick wrote: > > Hello, > I am playing with the CIMicroPaint sample code ( > https://developer.apple.com/library/mac/samplecode/CIMicroPaint). This is > basically a simple paint editor (you can draw on a view with a mouse using > CoreImage). > > I would like to save w

Re: Identify all open files of current OS X process

2015-02-08 Thread Alex Zavatone
Any idea what the Activity Monitor application uses for the Open Files and Ports when you inspect an application/process? On Feb 7, 2015, at 6:26 PM, Jerry Krinock wrote: > I need a method which will give me the paths of all files which the current > OS X process (*) has open. Yes, this is fo