Re: dispatch queue as property

2011-11-02 Thread Jamie Pinkham
Andreas, Also, in the modern runtime, you'll need to add the @synthesize to the implementation file as well, if you don't declare the backing ivar in the header. Thanks, Jamie On Nov 2, 2011, at 10:51 AM, Jamie Pinkham wrote: > Andreas, > > It most certainly indicates a

Re: dispatch queue as property

2011-11-02 Thread Jamie Pinkham
10:30 AM, Andreas Grosam wrote: > > On Nov 2, 2011, at 1:33 PM, Jamie Pinkham wrote: > >> Automatic property generation doesn't support the semantics you need. >> >> You are correct that you have to use the dispatch_retain() and >> dispatch_release() functions;

Re: dispatch queue as property

2011-11-02 Thread Jamie Pinkham
Bruno, > @property (nonatomic, retain) dispatch_queue_t *dispatchQueue; Let's assume for a second that this worked. Since dispatch_queue_t is already typedef'd as a pointer "typedef struct dispatch_queue_s *dispatch_queue_t;". You've declared the property as a pointer to a pointer, which mea

Re: dispatch queue as property

2011-11-02 Thread Jamie Pinkham
Automatic property generation doesn't support the semantics you need. You are correct that you have to use the dispatch_retain() and dispatch_release() functions; you just have write your setter and getter manually, using those functions. -Jamie Sent from my iPhone On Nov 2, 2011, at 7:52 A

Re: Cocoa-dev Digest, Vol 8, Issue 783

2011-09-29 Thread Jamie Pinkham
Fair point, Graham. I'm always wary of timers because careless use of them can cause problems like retain cycles. Sent from my iPhone On Sep 29, 2011, at 9:35 PM, Graham Cox wrote: > > On 30/09/2011, at 11:25 AM, Gordon Apple wrote: > >> Much easier than trying to manage timers. > > > I

Re: creating multiple NSTimers

2011-09-29 Thread Jamie Pinkham
Forgot to send to list: > Perhaps, instead of timers, you use objects that represent one of these > set-top boxes and the time at which they should be shutdown. And instead of > scheduling and managing timer, you manage the domain objects instead. Then, > you have one timer, that checks all o

Re: delegate of an NWindowController's window

2011-09-29 Thread Jamie Pinkham
The NSWindow delegate's type is id not id . This is the compiler telling you the types don't match. Sent from my iPhone On Sep 29, 2011, at 6:22 PM, Koen van der Drift wrote: > I'm trying to get the delegate of a window that is controlled by a custom > NSWindowController as follows: >

Re: What is the likely reason why objects aren't being loaded from a XIB?

2011-09-23 Thread Jamie Pinkham
I've made the mistake of having to same named nib files in my project, and it caused weird behavior. It's pretty easy to overlook, too. However, in my case, the nib would load correctly every other time I ran the app. On Sep 23, 2011, at 8:52 PM, G S wrote: > Hi all. > > I have a pretty simp

Re: any way to know where a UIBarButtonItem has been drawn?

2011-09-13 Thread Jamie Pinkham
at 11:47 , Jamie Pinkham wrote: > >> If your use case permits, you can figure out the frame of the bar button >> item in it's action selector by giving the selector the following signature: >> >> - (void)barButtonAction:(UIBarButtonItem *)item event:(UIEvent

Re: any way to know where a UIBarButtonItem has been drawn?

2011-09-12 Thread Jamie Pinkham
If your use case permits, you can figure out the frame of the bar button item in it's action selector by giving the selector the following signature: - (void)barButtonAction:(UIBarButtonItem *)item event:(UIEvent *)event; You can then use the properties of UIEvent to get the touches location, or

Re: WebServices / SOAP / REST

2008-11-23 Thread Jamie Pinkham
Greg, The beauty in REST is its simplicity. It's simply a request to a web server. Just like requesting a page. The response is representation of the data requested, in a specific format (XML, json, etc) Hence, Representational State Transfer :). If you're looking into interoperating

Re: Cocoa Programming iPing exercise

2008-10-02 Thread Jamie Pinkham
whoops.. should reply to all.. sorry Joe. anyway, i asked, and this may be a silly inquiry, but have you checked the execute permissions of the executable? On Oct 2, 2008, at 10:06 AM, Joe Keenan wrote: On Oct 2, 2008, at 10:01 AM, Sherm Pendley wrote: On Thu, Oct 2, 2008 at 9:20 AM, Joe