Re: CoreData / SQL hang on save

2009-09-19 Thread Greg Hoover
etch execution time: 0.s for 0 rows. safe save Thanks, Greg On Aug 25, 2009, at 1:16 PM, Melissa J. Turner wrote: On Aug 25, 2009, at 02:19, Greg Hoover wrote: I've run into a hang in CoreData save. I'm the single coordinator, multiple object contexts threading model and a S

NSURLRequest SSL Mac vs iPhone

2009-10-16 Thread Greg Hoover
I have the same piece of code making a secure request to a server in a Mac application and in an iPhone app. Both use an NSURLRequest with exactly the same settings, message, body, etc. On the Mac, the request succeeds, returning the data expected. On the iPhone however, the request fail

Re: NSURLRequest SSL Mac vs iPhone

2009-10-16 Thread Greg Hoover
On Oct 16, 2009, at 1:13 AM, Andrew Farmer wrote: On 16 Oct 2009, at 00:48, Greg Hoover wrote: I have the same piece of code making a secure request to a server in a Mac application and in an iPhone app. Both use an NSURLRequest with exactly the same settings, message, body, etc. On

All Address Book person unique IDs are the same

2009-11-10 Thread Greg Hoover
I'm using the following code to search for AB Records matching an email address. The search finds matching records but every returned record has the same unique ID (which doesn't match the unique ID of any Person records in AB). Any ideas? ABAddressBook *book = [ABAddressBook sharedA

All Address Book person unique IDs are the same [solved]

2009-11-12 Thread Greg Hoover
I extended NSManagedObject to provide a uniqueId accessor similar to that of ABRecord. Turns out that this messed with the uniqueId accessor of ABRecord. The docs don't say that ABRecord inherits from NSManagedObject but somewhere they do I guess (it seems reasonable that they would)...lesson

Dealing with faults in CoreData / AppleScript

2009-11-19 Thread Greg Hoover
I've been working through adding scriptability to my CoreData application but ran into a snag: accessing relationships may return a fault instead of the actual set of objects. Is there an "accepted" way of solving this issue? I don't want the accessor to "always" fault the objects in, just whe

ABPerson and Note property issue

2009-12-07 Thread Greg Hoover
When setting the value for the note property in an ABPerson record, the new value isn't available until relaunching the application. Scenario: - read the note value for a contact and I get "foo" - set the value to "bar" - save the address book - read the note value for the contact but get an em

CoreData / SQL hang on save

2009-08-25 Thread Greg Hoover
I've run into a hang in CoreData save. I'm the single coordinator, multiple object contexts threading model and a SQL store (though it seems to happen with XML as well). The hang occurs inside the NSSQLCore and seems to just loop endlessly. The SQL output supports this. Requests perform

Re: CoreData / SQL hang on save

2009-08-25 Thread Greg Hoover
me: 0.s for 0 rows. safe save Thanks, Greg On Aug 25, 2009, at 1:16 PM, Melissa J. Turner wrote: On Aug 25, 2009, at 02:19, Greg Hoover wrote: I've run into a hang in CoreData save. I'm the single coordinator, multiple object contexts threading model and a SQL store (though

Problem building for 10.4 on 10.6

2009-08-26 Thread Greg Hoover
Has anyone seen an error in XCode like this: GCC 4.2 is not compatible with the Mac OS X 10.4 SDK (file NSString+extras.m) I remove the referenced file and another pops up. I can build using the 10.5 SDK, but attempting to build with 10.4 doesn't seem to work. Thanks, Greg

Re: Problem building for 10.4 on 10.6

2009-08-26 Thread Greg Hoover
Thanks, I knew it had to be something simple that I was overlooking. On Aug 26, 2009, at 8:50 PM, Glenn L. Austin wrote: On Aug 26, 2009, at 8:41 PM, Greg Hoover wrote: Has anyone seen an error in XCode like this: GCC 4.2 is not compatible with the Mac OS X 10.4 SDK (file NSString+extras.m

iPhone syncing

2008-05-17 Thread Greg Hoover
With the release of an SDK for iPhone I'm considering a new app. Does anyone know if it will be possible to sync files between iPhone and a computer that are not addresses, photos, songs, etc? I suppose the work around is to put synced files at an Internet location and upload/ download the

Re: Drawing on Another App's CGDisplayCapture

2008-09-16 Thread Greg Hoover
I'm building a very similar function to the one described by Ben, but using PowerPoint -- I have an overlay window that is supposed to show auxiliary info during a PowerPoint presentation. I've verified that the drawing routines are running on my overlay window, but the updates are never s

Transparent view click-through

2008-04-11 Thread Greg Hoover
Is there a way to prevent click through on a transparent view? Greg ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.c

Re: Transparent view click-through -- SOLVED

2008-04-12 Thread Greg Hoover
I hadn't implemented the isOpaque method on my custom views. This did the trick, at least for my situation. Thanks. On Apr 12, 2008, at 1:19 AM, Ron Fleckner wrote: On 12/04/2008, at 9:54 AM, Greg Hoover wrote: Is there a way to prevent click through on a transparent view? Greg

Re: Transparent view click-through -- NOT SOLVED

2008-04-12 Thread Greg Hoover
Fleckner wrote: So, do you mean that overriding -isOpaque and returning YES allows you to have a transparent view which still catches mouse clicks? Ron On 13/04/2008, at 3:10 AM, Greg Hoover wrote: I hadn't implemented the isOpaque method on my custom views. This did the trick,

NSUserDefaults, threads, and binding

2008-04-16 Thread Greg Hoover
I've encountered a situation where NSUserDefaults is definitely not thread safe. Consider an user defaults value bound to an interface object. A background thread modifies this value, first acquiring the lock to write to the user defaults, writes the new value, and finally triggers a KVO

NSArrayController vs NSImage sort indicator image

2008-04-22 Thread Greg Hoover
Has anyone noticed that the image NSArrayController puts in the header of a table column looks different than the one retrieved by [NSImage imageNamed: @"NSAscendingSortIndicator"] -- the NSArrayController image looks sharper and aligns vertically centered to the header. Greg __

NSDateFormatter strangeness

2008-11-17 Thread Greg Hoover
I've worked with formatters for a while now, but this morning something odd happened. The following code translates the date string "17 Nov 2008" to "2007-12-23 00:00:00 -0800". NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat: @"d

Re: NSDateFormatter strangeness

2008-11-17 Thread Greg Hoover
I am using NSDateFormatter. The code snippet included shows this. Greg On Nov 17, 2008, at 3:38 PM, Kyle Sluder wrote: I think it's a known issue. The documentation for -[NSDate descriptionWithCalendarFormat:timeZone:locale:] (which I can only assume that -[NSDate description] calls) has this

Re: NSDateFormatter strangeness

2008-11-18 Thread Greg Hoover
the string to date. Is there an issue with creating static NSDateFormatters? Its curious because some of the date formatters in my app work as expected, others do not. Greg On Nov 18, 2008, at 12:06 AM, Nathan Kinsinger wrote: On Nov 17, 2008, at 6:23 PM, Greg Hoover wrote: I am

Re: NSDateFormatter strangeness

2008-11-18 Thread Greg Hoover
Wow! That totally fixed it. Thank you. Wow do I feel dumb! Greg On Nov 18, 2008, at 9:28 AM, Simon Wolf wrote: On 18 Nov 2008, at 17:06, Greg Hoover wrote: Ok, I buy that, but then what's the problem here: NSDateFormatter *formatter = [[NSDateFormatter alloc]

HTTP response using CFHTTPMessageCreateEmpty/CFHTTPMessageAppendBytes

2009-03-14 Thread Greg Hoover
I'm trying to parse an HTTP Post response using the following code. The problem is that CFHTTPMessageAppendBytes always returns false. I've tested by stripping down the response to just "HTTP/1.0 200 OK\r\n \r\n" and still no go. Does anyone know what the appropriate response format is?

Re: HTTP response using CFHTTPMessageCreateEmpty/CFHTTPMessageAppendBytes

2009-03-14 Thread Greg Hoover
Wow. Don't you hate it when its staring you in the face and you still can't see it. Thanks. On Mar 14, 2009, at 5:31 PM, Michael Ash wrote: On Sat, Mar 14, 2009 at 5:17 PM, Greg Hoover wrote: I'm trying to parse an HTTP Post response using the following code. The

Forcing controller to update binding of compound value

2009-04-22 Thread Greg Hoover
I'm using bindings to display values in a table. I use an array controller bound to the attribute of a model object. The controller "handles content as compound value" because of the way I access and update the content from a larger set. Everything is great in that values are retrieved a

NSURLConnection sendSynchronousRequest: crashes since upgrading to 10.5.7

2009-05-14 Thread Greg Hoover
After upgrading to 10.5.7 I've been having intermittent trouble with deallocated objects in NSURLConnections. All of my URL requests are made using sendSynchronousRequest. Everything is fine for about 10-15 minutes, then I get this crash. I am making requests on multiple threads, obvious

NSSegmentedControl highlights

2008-02-21 Thread Greg Hoover
There are already a number of issues with segmented controls in toolbars, but I didn't find a solution to this one: When the window is not in focus, the segmented control in the toolbar looses all highlight (lo-light) behavior. The control should color the selected segment with a lo-light