Re: drawRect not called when hosting Layers

2010-05-07 Thread Bill Garrison
On May 6, 2010, at 2:32 PM, Gustavo Pizano wrote: > David thanks for the info about the drawing. > > Im looking at the zombie error, and it seems the CALayer where Im putting the > animation its being deallocated, even have something like: > > CALayer * quickEdit; > @property(nonatomic, reta

Re: How to do cancellable HTTP request using CFNetwork APIs

2010-05-09 Thread Bill Garrison
On May 8, 2010, at 3:18 PM, Kenny Leung wrote: > Hi All. > > I'm using CFNetwork APIs to create a cancellable web operation using the > synchronous, non-blocking APIs like so: [snip] > This is fine once you've gotten to the point of pulling the response, but I > would like the operation to a

Re: Redirect NSLog to stdout?

2010-06-29 Thread Bill Garrison
On Jun 29, 2010, at 10:09 AM, Tito Ciuro wrote: [snip] > Instead, is there a way to configure NSLog() so that it redirects to stdout > instead of stderr? This might help. Bill __

Re: Redirect NSLog to stdout?

2010-06-29 Thread Bill Garrison
g> On Jun 29, 2010, at 4:32 PM, Kyle Sluder wrote: > On Tue, Jun 29, 2010 at 1:15 PM, Bill Garrison > wrote: >> http://www.atomicbird.com/blog/2007/07/code-quickie-redirect-nslog > > Rather than redirect all calls to NSLog, if your intent it to redirect > just your own

Re: Apple MVC and Document Based application confusion.

2009-11-29 Thread Bill Garrison
On Nov 29, 2009, at 6:58 PM, Sandro Noël wrote: From what I read the MyDocument Class is supposed to be a model controller, not the window controller. The MyDocument Class is supposed to be able to host an array of window controllers. NSDocument has the capability to host an array of windo

Re: NSWorkspace in a daemon

2009-11-30 Thread Bill Garrison
On Nov 30, 2009, at 9:17 AM, Nyxouf da ouf wrote: Hi, I have an Obj-c program who run as a daemon, using launchd, and that look for NSWorkspaceDidMountNotification. *[[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector:@selector(diskDidMount:) name:NSWorkspaceDidMo

Re: Lan/Airport Notification

2009-12-05 Thread Bill Garrison
On Dec 3, 2009, at 2:24 PM, Jens Alfke wrote: On Dec 3, 2009, at 9:02 AM, Stefan Lehrner wrote: is it possible to get notified when Airport or Lan is available? I wonder how I can be notified by the system whenever my Airport goes online or when my Lan Connection will be established? S

Re: Window Controllers

2009-12-28 Thread Bill Garrison
On Dec 23, 2009, at 5:54 PM, Graham Cox wrote: > On 24/12/2009, at 7:45 AM, David Blanton wrote: > >> In best Cocoa practices, should these Panels be owned by a window controller? > > Yes. > > --Graham I have an Xcode project template that demonstrates a working document-based app with a mai

How to use contentHorizontalAlignment in a UIControl subclass?

2010-07-26 Thread Bill Garrison
I've also posted this at I have a UIControl subclass that manages a set of five subviews; each subview is a custom UIView subclass (i.e. not a UILabel or UIImageView). I'm expecting UICont

Re: does anyone use IKImageView?

2010-07-31 Thread Bill Garrison
On Jul 30, 2010, at 2:23 PM, Quincey Morris wrote: > Unlike with most frameworks, the API isn't really a contract with the > developer, but more a series of "Push Here For A Chance To Win" buttons. Well put. Bill___ Cocoa-dev mailing list (Cocoa-de

Re: iOS: UITableViewCell an textlabel?

2010-08-03 Thread Bill Garrison
Sebastian, If you doing a UITableViewCell subclass, you'll have issues using the built-in textLabel property if you want it to be positioned somewhere other than the locations provided by the built-in styles. Your best bet is to add your own UILabel to the subclass' contentView. @interface MyT

Re: Is it possible to set UISlider intervals?

2010-08-18 Thread Bill Garrison
On Aug 10, 2010, at 8:43 PM, Devraj Mukherjee wrote: > Hi all, > > I am using UISliders in my iOS app. > > I can't see a way of setting the slide value interval. Is this > possible? Or do I have to calculate the change based on the 0.1 > increases? > > Minimum value set to -20 and Max to 20 an

Re: A directory site for open-source Cocoa components?

2008-05-22 Thread Bill Garrison
On May 22, 2008, at 12:29 PM, Jens Alfke wrote: There are quite a lot of open source Cocoa components these days — everything from small utility classes, to new controls, to entire frameworks — but no easy way to find them all. I keep running into various people's websites that list a hand

Ithaca, NY CocoaHeads Now Forming

2008-06-29 Thread Bill Garrison
I'm organizing an Ithaca, NY chapter of CocoaHeads to connect up with other developers in the area. More details at - Bill ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: KVO autonotifying complaining about custom setter return value

2008-03-05 Thread Bill Garrison
On Mar 5, 2008, at 5:14 PM, mmalc crawford wrote: One further issue for the sake of raising it: @property (setter=mySetMethod:,getter=myMethod) id valueTest; Note that this implies that the accessor methods are atomic. It's comparatively rare (unless you're using GC) that Cocoa developer

Re: Using Core Data with OCUnit

2008-03-10 Thread Bill Garrison
I've been doing Core Data unit tests using a MOC backed by an in- memory store. It gets the model using [NSManagedObjectModel mergedModelFromBundles:nil]. I didn't have to include the app's model file to the unit test target or anything. It seems to load it it fine directly from the app b

Re: NSWrapper Plus Plain text files

2008-03-15 Thread Bill Garrison
Lincoln, I'd refactor this so that you can take advantage of NSTextView's - readRTFDFromFile: method. It appears that you just want to get the NSTextView populated with some text. You don't seem to be saving the RTF data for any other purpose. Compiled in Mail.app: NSString *filePath =

Re: Tight loop processing

2008-04-11 Thread Bill Garrison
On Apr 11, 2008, at 7:35 AM, Don Arnel wrote: Actually, while reading up on NSThread I cam across NSOperation which appears to spawn a new thread but is supposedly much cleaner to work with. It definately does the job for me. Thanks everyone for your help with this problem. NSOperation d

Re: JSON Framework

2008-12-06 Thread Bill Garrison
On Dec 6, 2008, at 11:51 AM, development2 wrote: Hi, I hope someone can help me. I thought I was going to be able to use the JSON Framework from google code (http://code.google.com/p/json-framework/ ) but it won't build under the 10.4 SDK. I get errors on the build, mostly stuff that chang

Re: NSDateFormatter for ISO8601

2009-04-28 Thread Bill Garrison
On Apr 28, 2009, at 1:57 PM, Jeffrey Oleander wrote: On Mon, 2009/04/27, Martijn van Exel wrote: Unrelated: one of the XML attributes that needed parsing was a ISO8601 style date string, for which neither NSDate nor NSDateFormatter curiously does not seem to provide a parser. Maybe this wo