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 and I want

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

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

How to use contentHorizontalAlignment in a UIControl subclass?

2010-07-26 Thread Bill Garrison
I've also posted this at http://stackoverflow.com/questions/3337717/uicontrol-contenthorizontalalignment-how-to-use-in-a-subclass 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

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. http://www.atomicbird.com/blog/2007/07/code-quickie-redirect-nslog Bill ___

Re: Redirect NSLog to stdout?

2010-06-29 Thread Bill Garrison
, at 4:32 PM, Kyle Sluder wrote: On Tue, Jun 29, 2010 at 1:15 PM, Bill Garrison garri...@standardorbit.net 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 logging information (which I

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 main

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?

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:)

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

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 mve...@gmail.com 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

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

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 http://standardorbit.net/blog/2008/06/ithaca-cocoaheads-now-forming/ - Bill ___ Cocoa-dev mailing list

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

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

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: 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

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