Re: UITableView Custom Section Headers

2010-12-27 Thread ico
Hi, I don't know if you have figured this out. I also want to know how to do the customization on the section part of the tableview, not the cell but the section part. I want to put some custom content including an image on my section header rather than just some text. Can anyone tells me how to

Re: Strange error solved by turning off Non-contiguous Layout

2010-12-27 Thread Brad Stone
Yeah, that was it. I get by the place where the it used to deadlock. I'm make a note of that! Thanks On Dec 26, 2010, at 10:57 PM, Nick Zitzmann wrote: On Dec 26, 2010, at 5:00 PM, Brad Stone wrote: Ken - I never knew how to take a sample of the processes. It's given me some

Setting the date of a UIDatePicker

2010-12-27 Thread Hrishikesh Murukkathampoondi
I am trying to set the date of a UIDatePicker in my view. I have tried using both the following in - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil of my view controller but it does not work. The date is still set to what ever is specified in IB (and I am unable

Re: Setting the date of a UIDatePicker [Solved]

2010-12-27 Thread Hrishikesh Murukkathampoondi
Setting it in viewDidLoad: works. I guess setting properties of any outlet should be done in viewDidLoad My earlier init method was called but maybe the outlet was not yet hooked up then. Hrishi On 27-Dec-2010, at 8:16 PM, Hrishikesh Murukkathampoondi wrote: I am trying to set the date of a

Re: UITableView Custom Section Headers

2010-12-27 Thread Luke Hiesterman
On Dec 27, 2010, at 2:30 AM, ico jche...@gmail.com wrote: Hi, I don't know if you have figured this out. I also want to know how to do the customization on the section part of the tableview, not the cell but the section part. I want to put some custom content including an image on my

Re: UITableView Custom Section Headers

2010-12-27 Thread ico
Hi Fritz, Actually I just found the answer hours ago, I forgot all the magic things are in the delegate protocol, of course I need to implement those methods to make magic happen. Anyway, thank you for your response. On Mon, Dec 27, 2010 at 11:16 PM, Fritz Anderson fri...@manoverboard.orgwrote:

Re: Gap above NSMenuItem custom view

2010-12-27 Thread Joshua Garnham
Okay, you win. I will go ahead and use a borderless window. I know how to make a window borderless but where should I start then? How would you suggest I deal with adding and remove items from this sudo menu. Should I use NSTableView? From: Kyle Sluder

Drawing to two CALayers at once (or pretend to)?

2010-12-27 Thread vincent habchi
Hi everybody – well, I don't have a precise question but rather a general advice. I need to draw a path on a CALayer and simultaneously lay out a text along this same path (that can be made up of straight lines and/or arcs) on another layer (CATextLayer, presumably). Knowing that the path is

Re: Text rendering/editing on OSX iOS

2010-12-27 Thread Alastair Houghton
On 21 Dec 2010, at 14:29, Ricky Sharp wrote: I'm not sure what you mean by it's the same. Do you mean pixel for pixel accuracy between Mac OS X and iOS? I don't thing that may be possible (at least at a high level) as there may be different rendering techniques. Indeed, my understanding

Re: Drawing to two CALayers at once (or pretend to)?

2010-12-27 Thread Fritz Anderson
On 27 Dec 2010, at 2:04 PM, vincent habchi wrote: Knowing that the path is computed by reading values in a database, I'd like to avoid a double reading that costs some time (even if there is a cache) and seems redundant Ancient precept: Make it right, then make it fast. Do it the simplest

Re: Drawing to two CALayers at once (or pretend to)?

2010-12-27 Thread vincent habchi
Le 27 déc. 2010 à 21:34, Fritz Anderson a écrit : On 27 Dec 2010, at 2:04 PM, vincent habchi wrote: Knowing that the path is computed by reading values in a database, I'd like to avoid a double reading that costs some time (even if there is a cache) and seems redundant Ancient precept:

Re: Drawing to two CALayers at once (or pretend to)?

2010-12-27 Thread Seth Willits
On Dec 27, 2010, at 12:59 PM, vincent habchi wrote: Knowing that the path is computed by reading values in a database, I'd like to avoid a double reading that costs some time (even if there is a cache) and seems redundant Ancient precept: Make it right, then make it fast. Do it the

Re: Drawing to two CALayers at once (or pretend to)?

2010-12-27 Thread vincent habchi
Le 27 déc. 2010 à 23:12, Seth Willits a écrit : That, but I also don't see why the two layers would need to read the data separately. For example, their delegate can be the one to fetch and read the data and create the path from it, then save that CG path. When either layer draws, it would

Re: Drawing to two CALayers at once (or pretend to)?

2010-12-27 Thread Seth Willits
On Dec 27, 2010, at 2:24 PM, vincent habchi wrote: That, but I also don't see why the two layers would need to read the data separately. For example, their delegate can be the one to fetch and read the data and create the path from it, then save that CG path. When either layer draws, it

Memory management about async object

2010-12-27 Thread ico
Hi, I am working on an app that will asynchronous to load data. Suppose I have a view controller with a method: in MyViewController: - (void) loadData { DataHandler *myHandler = [[DataHandler alloc] init]; // set this view controller itself as a delegate, when the data loading finished,