On Nov 15, 2012, at 3:17 PM, Graham Cox wrote:
> How can I invoke a method of my protocol on the main thread?
Aside from Greg's simple suggestion, GCD is your friend. Then you're not
beholden to a single method call, or the interface requirements of the
performSelector methods.
dispatch_async(
On 16/11/2012, at 10:23 AM, Greg Parker wrote:
> The simple solution is to declare your property as NSObject* .
>
D'oh!!
Thanks - that was simple. I thought I'd tried it, but my syntax was wrong: I
had NSObject*
--Graham
___
Cocoa-dev mailing
On Nov 15, 2012, at 3:17 PM, Graham Cox wrote:
> I have a formal protocol for a notification callback I want to make. The
> protocol inherits the NSObject protocol.
>
> The caller accepts only objects conforming to this protocol as its delegate.
> When it's time to invoke the callback, I'd like
Hi all,
I have a formal protocol for a notification callback I want to make. The
protocol inherits the NSObject protocol.
The caller accepts only objects conforming to this protocol as its delegate.
When it's time to invoke the callback, I'd like to do so on the main thread,
since the caller