How to allocate and delegate; or how to keep GC and the static analyzer happy

2009-10-08 Thread Glen Low
f the calling object, but I was hoping to avoid that -- the calling object may invoke start multiple times before each finishWithSomething:. Any suggestions? Cheers, Glen Low --- pixelglow software | simply brilliant stuff www.pixelglow.com aim: pixglen twitter: pixe

Re: How to allocate and delegate; or how to keep GC and the static analyzer happy

2009-10-10 Thread Glen Low
finishWithSomething: and that does the cleanup. Several UI classes can work this way e.g. -[UIActionSheet initWithTitle:delegate:...]. On 10/10/2009, at 12:29 PM, Jens Alfke wrote: On Oct 8, 2009, at 7:33 PM, Glen Low wrote: 1. The code is not GC friendly as between the end of start and

Re: How to allocate and delegate; or how to keep GC and the static analyzer happy

2009-10-10 Thread Glen Low
On 10/10/2009, at 12:29 PM, Jens Alfke wrote: On Oct 8, 2009, at 7:33 PM, Glen Low wrote: 1. The code is not GC friendly as between the end of start and the beginning of finishWithSomething, there are no references to the object, so it may be collected. There must be references to it

API for Open Directory domain?

2009-11-17 Thread Glen Low
Hi All I know you can retrieve the user name via NSUserName(). Is there an equivalent API for the user's Open Directory/Kerberos etc. domain? I'm after the equivalent of the Windows domain, where a USER in a DOMAIN comes out like DOMAIN\USER. Cheers, Glen Low --- pixelglo

Re: API for Open Directory domain?

2009-11-17 Thread Glen Low
On 18/11/2009, at 6:34 AM, Kyle Sluder wrote: On Tue, Nov 17, 2009 at 2:21 PM, Glen Low wrote: I know you can retrieve the user name via NSUserName(). Is there an equivalent API for the user's Open Directory/Kerberos etc. domain? I'm after the equivalent of the Windows domain, wh

Crash on NSKVOPendingNotificationRelease (KVO, bindings issue?)

2010-04-21 Thread Glen Low
or C changes, you want A to change too. I can use keyPathsForValuesAffectingA to declare it depends on B or C, but I need to update the cached A value whenever B or C changes -- how would I do that without using observeValueForKeyPath:ofObject:change:c

Missing resize control when NSScrollView.wantsLayer = YES?

2010-07-18 Thread Glen Low
control and/or text field focus rings? This is for Mac OS X 10.6. Cheers Glen Low Pixelglow Software ___ 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

Missing resize control when NSScrollView.wantsLayer = YES? (bumped)

2010-07-20 Thread Glen Low
control and/or text field focus rings? This is for Mac OS X 10.6. Cheers Glen Low Pixelglow Software ___ 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

Re: Recursive blocks

2011-02-01 Thread Glen Low
e transformed this one to a non-recursive algorithm, but some algorithms would look cleaner as a recursion. In those cases, if there is a need to capture local variables, that would be a legitimate use of a recursive block. Cheers, Glen Low --- pixelglow software | simply bril

Re: Recursive blocks

2011-01-28 Thread Glen Low
itself e.g. ^(GKGraph* cluster) { ... __self__(subcluster); /* recursive call */ ... } Cheers, Glen Low --- pixelglow software | simply brilliant stuff www.pixelglow.com aim: pixglen twitter: pixelglow ___ Cocoa-dev mailing list (Cocoa-dev@lists

[ANN] zipzap -- zip file I/O library

2012-10-27 Thread Glen Low
. Poke a stick at it here: https://github.com/pixelglow/zipzap All feedback, comments, brickbats or bouquets are welcome. Cheers Glen Low Pixelglow Software ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Cocoa-dev Digest, Vol 9, Issue 751

2012-10-30 Thread Glen Low
All On 30/10/2012, at 12:44 AM, cocoa-dev-requ...@lists.apple.com wrote: > From: Jens Alfke > Subject: Re: zlib, objective-zip, NSDataCategory > Date: 30 October 2012 12:44:37 AM AWST > To: Michael Brian Bentley > Cc: cocoa-dev@lists.apple.com > > > > On Oct 25, 2012, at 3:01 PM, Michael Brian

Services menu invoke from the command line?

2008-06-18 Thread Glen Low
Hi All Is there any command-line tool that will invoke a Services menu command with standard input as the data to be transformed? Cheers, Glen Low --- pixelglow software | simply brilliant stuff www.pixelglow.com aim: pixglen ___ Cocoa-dev

NSSet primitive methods

2008-10-11 Thread Glen Low
x27;s primitives are count: and objectAtIndex: -- all the other methods are implemented on top of these. Now I want to do the same for NSSet, but the docs don't mention what its primitive methods are. Cheers, Glen Low --- pixelglow software | simply brilliant stuff www.pixelglow.com ai

Re: NSSet primitive methods

2008-10-12 Thread Glen Low
ather just define a NSSet subclass instead that passes all relevant operations to the C structure/functions. Also the data structure is more akin to an unordered set than an ordered array e.g. it's non-trivial to retrieve an indexed member of the structure. Cheers, Glen Low ---