Re: error building against sdk 10.5

2008-07-22 Thread Tony Becker
I'm going to make some assumptions here... This is a project that works under 10.4 and has compile errors when the SDK is switched to 10.5 Go into your Targets and select your application, or the first dependancy of your target that doesn't build Double click on the target to get the info

Re: [[NSDate alloc] initWithString] crashes with valid string

2008-07-15 Thread Tony Becker
I didn't see any code sniglet for this, but it's not something simple like: [[NSDate alloc] initWithString:...]; vs [[NSDate alloc] initWithString:@...]; i.e.: passing CString vs NSString? On Jul 15, 2008, at 4:12 PM, Kyle Sluder wrote: On Tue, Jul 15, 2008 at 2:36 PM,

Re: tracking area problems on 10.4.11

2008-07-02 Thread Tony Becker
As a general rule, the tracking rects are smaller then the whole window, and technically need the mouse to enter/exit, which I don't see happening, if they are the same size. Try something like: [[mWindow contentView] addTrackingRect:NSInsetRect([mWindow frame], [mWindow

Re: tracking area problems on 10.4.11

2008-07-02 Thread Tony Becker
Tony Becker P:: 954-584-1909 C:: 954-612-9303 http://homepage.mac.com/aebecker http://web.mac.com/aebecker For a successful technology, reality must take precedence over public relations, for nature cannot be fooled. -Dr. Richard P. Feynman

Re: Why should we set ivars to nil in dealloc?

2008-04-14 Thread Tony Becker
OK. My $0.02 To answer the original question... We live in an Object world, where we like to re-use things. So, for example, I have an object hierarchy of view controllers. In -awakeFromNib:, I use a instantiate and use a iVar. In dealloc, I release it. However, under

Re: How to add number do Dock Icon like in Mail?

2008-03-30 Thread Tony Becker
It's called badging http://developer.apple.com/samplecode/DockTile/listing5.html On Mar 30, 2008, at 10:42 AM, Samvel wrote: I'd like my application to show number of completed tasks in Dock Icon as it is done in Mail (number of unread emails). Anyone knows how to do that or where I can

Re: How to get the name of a method at runtime?

2008-03-09 Thread Tony Becker
PM, Bill Bumgarner wrote: On Mar 9, 2008, at 2:59 PM, stephen joseph butler wrote: On Sun, Mar 9, 2008 at 4:45 PM, Tony Becker [EMAIL PROTECTED] wrote: If you're on Leopard, there is a new backtrace(3) call. If you're on Tiger, it's a little more complex... You can use the compiler