Re: CoreWLAN Notifications
Re: CoreWLAN Notifications
- Subject: Re: CoreWLAN Notifications
- From: Terry Simons <email@hidden>
- Date: Sat, 19 Sep 2009 01:09:35 -0600
Aha.
It turns out that your application has to have a standing, valid
reference to the wireless interface in order for the notifications to
be received and processed.
That isn't very intuitive, IMO. Can somebody explain why that is
necessary? I don't understand what is going on behind the scenes.
I solved the issue by adding a CWInterface * object to my class and
keeping the reference around.
- Terry
On Sat, Sep 19, 2009 at 12:49 AM, Terry Simons <email@hidden> wrote:
> Hmmm
>
> I tried the Apple example and it works, but my example still doesn't work.
>
> I even copied the notification registration from the example, but that
> still doesn't work in my application.
>
> I also tried NSDistributedNotificationCenter to no avail.
>
> Any other suggestions?
>
> Is there some way to instrument the events my application is
> registered for after I attempt to register?
>
> - Terry
>
> On Mon, Sep 14, 2009 at 5:06 AM, Stéphane Sudre <email@hidden> wrote:
>> That's not what the Apple sample code does. It just registers to the
>> NSNotificationCenter.
>>
>> On 13 sept. 09, at 07:26, Matt Slot wrote:
>>
>>> On Sep 12, 2009, at 2:02 PM, Terry Simons wrote:
>>>>
>>>> [[NSNotificationCenter defaultCenter]
>>>> addObserver:self
>>>> selector:@selector(processNotification:)
>>>> name:kCWPowerDidChangeNotification
>>>> object:nil];
>>>
>>> You probably need to register with NSDistributedNotificationCenter to
>>> receive system-wide notifications.
>>>
>>> Matt Slot / Bitwise Operator / Ambrosia Software, Inc. --
>>> http://www.AmbrosiaSW.com/
>>>
>>>
>>
>>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden