Odd behavior of [NSDateFormatter dateFromString] with short years?

2009-11-03 Thread marc hoffman
Hi, im running into some very odd behavior when using a ShortStyle date formatter for entering dates, and using single vs double digit year numbers. typing the year as either 2009 or 09 works as expected, but typing it as 9 not only does *not adjust the century, but also produces what

Negative values in KVC's @sum?

2009-07-03 Thread marc hoffman
Hi, i'm wondering if i am missing something, but is KVC's @sum operator supposed to handle negative values? i'm using it to calculate the sum (duh) of NSDecimalNumber in a custom class. all is going fine, but as soon as i have a negative value, i get a huge negative number as result. for

Re: NSTask temrinationStatus always == 1?

2009-05-11 Thread marc hoffman
Jim, i have an odd issue with NSTask. for some reason, no matter what result code my executable returns (im running xcodebuild, if that matters), NSTask's terminationStatus always reports back as 1. if instead i use system() to run the exact same command, i get bak proper error codes (0

NSTask temrinationStatus always == 1?

2009-05-10 Thread marc hoffman
Hi, i have an odd issue with NSTask. for some reason, no matter what result code my executable returns (im running xcodebuild, if that matters), NSTask's terminationStatus always reports back as 1. if instead i use system() to run the exact same command, i get bak proper error codes (0

Re: Odd EXEC_BAD_ACCESS after executing URLRequest [SOLVED]

2009-01-07 Thread marc hoffman
Jason, The way you've allocated the connection, it should start automatically. You shouldn't need to call -start manually. This *might* be causing some issues. The documentation doesn't say not to call it on a connection that is already started, but there might be a bug. Try removing this

Re: Which language to get started with cocoa development?

2009-01-06 Thread marc hoffman
with in other languages will be a much bigger challenge to getting started. this just imho, of course. Yours, marc hoffman RemObjects Software The Infrastructure Company http://www.remobjects.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Odd EXEC_BAD_ACCESS after executing URLRequest

2009-01-06 Thread marc hoffman
Jason, +[NSURLConnection sendSynchronousRequest:returningResponse:error:] ? Recursively pumping the run loop like that in the default mode is discouraged. I don't know the specifics of why, but crashes such as you're seeing could be part of it. same happens when i frun the code proper

Re: Odd EXEC_BAD_ACCESS after executing URLRequest

2008-12-31 Thread marc hoffman
Jacob, Are you sure you are not accidentally triggering two 'send message' calls concurrently. One of the most common causes of this problem is that your second request is over-writing the variables of an already in progress request. Check that done is not set to yes when you call your

Odd EXEC_BAD_ACCESS after executing URLRequest

2008-12-30 Thread marc hoffman
Hi, i'm hoping someone has an idea here - i'm seeing odd crashes after doing URL requests. the first request completes fine (up to it triggering connectionDidFinishLoading:), but shortly after or while doing a subsequent request, i get a EXC_BAD_ACCESS in what seems to be a secondary

Re: Odd EXEC_BAD_ACCESS after executing URLRequest

2008-12-30 Thread marc hoffman
Jason, On Tue, Dec 30, 2008 at 10:10 AM, marc hoffman m...@elitedev.com wrote: while (!done) { [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:timeout]]; } Since you want the request

NSTableView sometimes doesn't repaint on reloadData:?

2008-08-30 Thread marc hoffman
? thanx, Yours, marc hoffman RemObjects Software The Infrastructure Company http://www.remobjects.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: NSTableView sometimes doesn't repaint on reloadData:?

2008-08-30 Thread marc hoffman
Andrew, Greetings, Marc, I've seen this behavior when calling -reloadData from a thread other than the main thread. Is it possible that that's happening in your case? i'm only ever changing the data in response to an action received from a UI element - a search box or a menu item

Re: NSTableView sometimes doesn't repaint on reloadData:?

2008-08-30 Thread marc hoffman
Michael, thanx for the extensive reply. any idea what might be happening? i mean, obviously the call to reloadData: takes fine, else if the table had - say - 3 rows before, it would not know to paint row five when i click it, right? That's actually not obvious at all. You must remember