Re: nonatomic vs atomic assign/retain

2011-09-08 Thread Torsten Curdt
I see. I should have not argued with immutability. >                [[NSBundle mainBundle] loadNibNamed:@"ComplexTableViewCell" > owner:self options:nil]; >                cell = [[self.loadedCell retain] autorelease]; >                self.loadedCell = nil; Here you assume that loadNibNamed:own

Re: nonatomic vs atomic assign/retain

2011-09-08 Thread Torsten Curdt
>> Anyway. But I am curious - can you provide an example where you >> modified an outlet? > > In Cocoa apps I've done setTarget: on table views where I didn't want an > action but I did want to do setDoubleAction:. I don't know if that's still > necessary. That's changing properties on the targe

Re: Distributed Notification observing change in Lion?

2011-09-08 Thread Matt Gough
Thanks, that was exactly the problem Matt On 7 Sep 2011, at 17:38, Ben Gollmer wrote: > On Sep 7, 2011, at 11:48 AM, Matt Gough wrote: > >> I have an observer for a Dist notification in my app. In Lion, my observer >> doesn't actually get called until I interact with my app in some way (i.e >>

Re: NSURLConnection problem on Mac OS X 10.7

2011-09-08 Thread Mike Abdullah
On 8 Sep 2011, at 14:30, Payal Mundhada wrote: > Hi, > I am calling this function in a thread using NSThread method from Main > thread (Handling UI) > > [NSThread detachNewThreadSelector:@selector(startDownload) toTarget:self > withObject:nil]; > > -(void)startDownload > {[myWebService mak

Re: NSURLConnection problem on Mac OS X 10.7

2011-09-08 Thread Jens Alfke
On Sep 8, 2011, at 7:12 AM, Mike Abdullah wrote: >> since we are downloading large data from server so NSURLConnection delegate >> mentioned below is getting called continuously and meanwhile also need to >> update UI, so calling the web service function itself in a saperate thread. > > A Mac

JSON Parser

2011-09-08 Thread Tom Hohensee
I have recently come across the need to handle JSON in an application I am working on for 10.6 and 10.7. After googling for a parser I came across several of them but some look abandoned. I am unsure which to pick. Anyone know of a good current JSON parser for cocoa in 10.6 and 10.7? Thank

Re: JSON Parser

2011-09-08 Thread Hunter Hillegas
I'm a big fan of JSONKit. https://github.com/johnezang/JSONKit On Sep 8, 2011, at 10:25 AM, Tom Hohensee wrote: > I have recently come across the need to handle JSON in an application I am > working on for 10.6 and 10.7. After googling for a parser I came across > several of them but some loo

Re: JSON Parser

2011-09-08 Thread Zajkowski, James
On Sep 8, 2011, at 1:25 PM, Tom Hohensee wrote: > I have recently come across the need to handle JSON in an application I am > working on for 10.6 and 10.7. After googling for a parser I came across > several of them but some look abandoned. I am unsure which to pick. Anyone > know of a good

Re: JSON Parser

2011-09-08 Thread Mike Manzano
I've also used SBJSON successfully. Mike Sent whilst mobile. On Sep 8, 2011, at 10:25 AM, Tom Hohensee wrote: > I have recently come across the need to handle JSON in an application I am > working on for 10.6 and 10.7. After googling for a parser I came across > several of them but some

Re: JSON Parser

2011-09-08 Thread Jens Alfke
On Sep 8, 2011, at 10:25 AM, Tom Hohensee wrote: > I have recently come across the need to handle JSON in an application I am > working on for 10.6 and 10.7. After googling for a parser I came across > several of them but some look abandoned. I am unsure which to pick. Anyone > know of a go

Re: JSON Parser

2011-09-08 Thread Tom Hohensee
I did give JSONKit a quick run and ran into some issues that I think are the 64bit issue you are referring to. I did not spend a whole lot of time trying to figure it out. That is when I decided to ask the list. I am going to give JSON framework a try. I see that there are some performance

[ANN] AMRollOverButton for Lion

2011-09-08 Thread Andreas Mayer
Hi there! AMRollOverButton is a custom NSButton subclass with lots of configuration options and built in roll over effect. Since Xcode 4.x does not support IB plugins, I redesigned the class(es) so that you can easily save your button design and load it at runtime. For more information, see th

Re: NSURLConnection problem on Mac OS X 10.7

2011-09-08 Thread Mike Abdullah
On 7 Sep 2011, at 14:37, Payal Mundhada wrote: > Hi Mike, > > I am creating request as follows: > > @implementation WebService > -(void)makeRequest > { > m_URLRequest= [NSMutableURLRequest requestWithURL:url]; > [m_URLRequest setHTTPMethod:@"POST"]; >

NSOutlineView and -reloadDataForRowIndexes:columnIndexes:

2011-09-08 Thread Sebastien Boisvert
Does -reloadDataForRowIndexes:columnIndexes: work on NSOutlineView? I'm trying to use this to refresh some rows, but I get no indication that anything in my delegate is being queried to refresh the data. ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Strange white-ish tint on images in a table olumn

2011-09-08 Thread dvlchat
Hello, I see something weird happening with images displayed in a NSTableView's column. Until now, the table contents was bound to the arrangedObjects of a controller, the model of which containing image paths. BTW, I hadn't realized that until now, but it seems ok to provide paths (NSStr

Custom universal types, but outside an application

2011-09-08 Thread dvlchat
Hello, I know how to create an application and instruct the system about a custom type and its use by using both CFBundleDocumentTypes and UTExportedTypeDeclarations in Info.plist. My problem: this type is not actually defined and used by an application, but by a preference pane. It seems

Re: Custom universal types, but outside an application

2011-09-08 Thread dvlchat
I wrote: > I know how to create an application and instruct the system about a > custom type and its use by using both CFBundleDocumentTypes and > UTExportedTypeDeclarations in Info.plist. I forgot another question: the type represents directories structured like framework bundles. Those director

Re: NSURLConnection problem on Mac OS X 10.7

2011-09-08 Thread Jens Alfke
On Sep 8, 2011, at 2:46 AM, Mike Abdullah wrote: >> In delegate connectionDidFinishLoading handling as follows: >> -(void)connectionDidFinishLoading:(NSURLConnection *)connection >> { >> @try { >>CFRunLoopStop(m_runLoopRef); >>[m_connection release]; >>m_c

Re: JSON Parser

2011-09-08 Thread Jim McGowan
I'm using the YAJL framework (yajl-objc) in a 10.6/10.7 project at the moment, and it works great. Nice clean API. http://gabriel.github.com/yajl-objc/ Jim On 9 Sep 2011, at 1:25:37 , Tom Hohensee wrote: > I have recently come across the need to handle JSON in an application I am > working o

Re: Custom universal types, but outside an application

2011-09-08 Thread Lee Ann Rucker
When you create the bundle, set NSFileExtensionHidden on it. - Original Message - From: dvlc...@gmail.com To: cocoa-dev@lists.apple.com Sent: Thursday, September 8, 2011 1:30:00 PM Subject: Re: Custom universal types, but outside an application I wrote: > I know how to create an applicat

Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable.

2011-09-08 Thread Andreas Mayer
Am 05.08.2011 um 22:01 schrieb R R Hornback: I just found this message while searching for a solution to the same problem. > With OS X Lion, even when the window background is transparent, the window > still receives the mouse events. > > I have determined that this is related to whether or no

Re: Custom universal types, but outside an application

2011-09-08 Thread Stephen J. Butler
On Thu, Sep 8, 2011 at 3:21 PM, wrote: > My problem: this type is not actually defined and used by an > application, but by a preference pane. It seems that putting the proper > entries in the preference pane's Info.plist doesn't work (or am I > missing something ?). What you're missing, I think