Re: What rect does NSTextFieldCell use to draw its contents?

2012-12-14 Thread jonat...@mugginsoft.com
On 13 Dec 2012, at 23:17, Kyle Sluder k...@ksluder.com wrote: Since I'm comparing the string-drawing methods to NSTextFieldCell drawing, according to this documentation there should be no difference. In my test case I compared the cells rendering with an NSTextField configured as a label.

Re: Bindings validation for NSMutableArray of NSMutableDictionary

2012-12-14 Thread Mike Abdullah
I'd strongly advise the OP it's better for them to create a custom class for their model objects, rather than go down this route of globally modifying NSMutableDictionary's API. On 13 Dec 2012, at 22:18, jonat...@mugginsoft.com wrote: On 13 Dec 2012, at 11:54, jonat...@mugginsoft.com wrote:

Re: NSMutableData and Pinned Memory buffers..

2012-12-14 Thread Mike Abdullah
Arguably, you'd be better off subclassing NSData directly to add the mutation APIs that you actually need. That clears up any possible confusion about methods which might affect the length of the data. On 14 Dec 2012, at 00:13, Robert Monaghan wrote: Thanks for the suggestion, Kevin! I

Re: Bindings validation for NSMutableArray of NSMutableDictionary

2012-12-14 Thread jonat...@mugginsoft.com
On 14 Dec 2012, at 11:13, Mike Abdullah cocoa...@mikeabdullah.net wrote: I'd strongly advise the OP it's better for them to create a custom class for their model objects, rather than go down this route of globally modifying NSMutableDictionary's API. In general I would strongly advise this

Re: What rect does NSTextFieldCell use to draw its contents?

2012-12-14 Thread Kyle Sluder
On Dec 14, 2012, at 2:42 AM, jonat...@mugginsoft.com jonat...@mugginsoft.com wrote: On 13 Dec 2012, at 23:17, Kyle Sluder k...@ksluder.com wrote: Since I'm comparing the string-drawing methods to NSTextFieldCell drawing, according to this documentation there should be no difference. In

Build script

2012-12-14 Thread Rui Pacheco
Hello, I have a couple of scripts I use to build my projects and automate releases. I've started with Bash and am currently finishing a Python version of it. I find Python easier to read and maintain than Bash. What do you use to automate your releases? -- Rui Pacheco

NSWorkspace recycleURLs:completionHandler error -5000 (afpAccessDenied)

2012-12-14 Thread Jon Gary
I have a sandboxed app that creates a file in a folder within the app's sandbox container. When the app is done with the file, it is moved to the trash using recycleURLs:completionHandler. A few of our users are reporting the you do not have permision to move the file to the trash. I've checked

CALayer UIImage rendered on top of content instead of below

2012-12-14 Thread Markus Spoettl
Hi, I have custom UIView with multiple layers, all custom drawn via delegate. In one layer, I draw an image and on top of that image, I draw bezier paths and rects. Or so I try. For some reason the image is rendered ABOVE what I draw OVER it later. So basically I have this (this is the

Correct way to make mutable and immutable objects?

2012-12-14 Thread Graham Cox
Hi all, I'm having trouble getting this to work how I think it should, i must be missing something. I have an abstract base class A and a mutable subclass AM. The class A owns a list of subsidiary objects but only the class AM has the methods for adding and removing these , which is what

Re: CALayer UIImage rendered on top of content instead of below

2012-12-14 Thread David Duncan
On Dec 14, 2012, at 3:07 PM, Markus Spoettl ms_li...@shiftoption.com wrote: I have custom UIView with multiple layers, all custom drawn via delegate. In one layer, I draw an image and on top of that image, I draw bezier paths and rects. Or so I try. For some reason the image is rendered

Re: NSWorkspace recycleURLs:completionHandler error -5000 (afpAccessDenied)

2012-12-14 Thread Mike Abdullah
On 14 Dec 2012, at 21:26, Jon Gary wrote: I have a sandboxed app that creates a file in a folder within the app's sandbox container. When the app is done with the file, it is moved to the trash using recycleURLs:completionHandler. A few of our users are reporting the you do not have

Re: blocks and id

2012-12-14 Thread Uli Kusterer
On 12.12.2012, at 10:03, Andreas Grosam agro...@onlinehome.de wrote: How can I check at runtime whether an object (id) is actually a block, and not another kind of object? Not a good idea. What are you really trying to do? Here's a few common cases and suggestions on how to do it better, and

Re: blocks and id

2012-12-14 Thread Uli Kusterer
On 15.12.2012, at 01:38, Uli Kusterer witness.of.teacht...@gmx.net wrote: On 12.12.2012, at 10:03, Andreas Grosam agro...@onlinehome.de wrote: How can I check at runtime whether an object (id) is actually a block, and not another kind of object? Not a good idea. What are you really trying

Re: Build script

2012-12-14 Thread Uli Kusterer
On 14.12.2012, at 20:50, Rui Pacheco rui.pach...@gmail.com wrote: I have a couple of scripts I use to build my projects and automate releases. I've started with Bash and am currently finishing a Python version of it. I find Python easier to read and maintain than Bash. What do you use to

Re: How to capture a video stream

2012-12-14 Thread gary . gardner
On 11 Dec 2012, at 05:33, gary.gard...@brokensoftware.com wrote: I need further assistance. I select the capture device, but after I execute run, I get the following: Invalid memory access of location 0x0 rip=0x7fff933e3598 942 Segmentation fault: 11 I am following the AVVideoWall

Scroll Lock button press event (PC keyboard)

2012-12-14 Thread Nick
Hello I need to intercept a scroll lock key event (that can be found on most of PC keyboards). It seems that AppKit framework does not pass any NSEvent's to the application when this button is pressed. Neither works addGlobalMonitorForEventsMatchingMask (access for assistive devices is enabled).

Re: Correct way to make mutable and immutable objects?

2012-12-14 Thread Quincey Morris
On Dec 14, 2012, at 15:25 , Graham Cox graham@bigpond.com wrote: I have an abstract base class A and a mutable subclass AM. The class A owns a list of subsidiary objects but only the class AM has the methods for adding and removing these , which is what 'mutable' means for this class.

Re: Scroll Lock button press event (PC keyboard)

2012-12-14 Thread Nick
No, nothing lights up. In fact, the only LED on my PC keyboard that can light up in Mac OS from keypresses is the Caps Lock. I am wondering if I could use IOKit to get Scroll lock keypress event, though?. 2012/12/15 Kyle Sluder k...@ksluder.com On Dec 14, 2012, at 5:55 PM, Nick

Re: Simple Auto-Layout problem

2012-12-14 Thread Eric Gorr
Well, I thought this was a simple auto-layout problem. As it turns out, it is a bug. I have filed a bug report - rdar://12888108 However, there is a workaround for this bug. The NSView which is a parent to the NSButton needs to be a subclass of NSView with at least a -drawRect: method. On