Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8283693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:49:40+00:00 2026-06-08T10:49:40+00:00

When I register for CoreWLAN notifications (with a retained interface) like this: [[NSNotificationCenter defaultCenter]

  • 0

When I register for CoreWLAN notifications (with a retained interface) like this:

 [[NSNotificationCenter defaultCenter] addObserver:self 
                                         selector:@selector(recieveNetworkNotificationAndRedirectToMainThread:) 
                                             name:CWSSIDDidChangeNotification 
                                           object:nil];

I receive the notification only when I have all entitlements disabled. None of the default entitlements allow me to receive this (or other CoreWLAN) notification.

Any ideas?

10.7.4


Edit 1:

The Entitlements Reference page did not provide any assistance.


Edit 2:

Faking the notification works fine:

  [[NSNotificationCenter defaultCenter] 
 postNotificationName:CWSSIDDidChangeNotification 
 object:self];  

And none of the other CoreWLAN notifications are received either.

I am sure that this is a simple entitlement that I’m missing… Here is the entitlement file with the temp exception for Growl (removing the temp exception has no effect either):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.security.app-sandbox</key>
    <true/>
    <key>com.apple.security.device.usb</key>
    <true/>
    <key>com.apple.security.files.user-selected.read-only</key>
    <true/>
    <key>com.apple.security.network.client</key>
    <true/>
    <key>com.apple.security.network.server</key>
    <true/>
    <key>com.apple.security.temporary-exception.apple-events</key>
    <string>com.Growl.GrowlHelperApp</string>
    <key>com.apple.security.temporary-exception.mach-lookup.global-name</key>
    <string>GrowlApplicationBridgePathway</string>
</dict>
</plist>

Edit 3:

Compiling for 10.6 using the old k-prefixed notification names has no effect either.


Edit 4:

More information from the logs:

AppName (39009) deny system-socket

Process: AppName [39009] Path:
/Users/username/Library/Developer/Xcode/DerivedData/AppName-fnxrpqnodsouovcaxgiocvnfpqor/Build/Products/Release/AppName/Contents/MacOS/AppName
Load Address: 0x10d23f000 Identifier: AppName Version:
??? (???) Code Type: X86-64 (Native) Parent Process:
debugserver [39007]

Date/Time: 2012-07-20 13:17:11.851 -0700 OS Version: Mac OS
X 10.7.4 (11E2705) Report Version: 7

Backtrace: 0 libsystem_kernel.dylib 0x00007fff98704e76
socket + 10 1 CoreWLAN 0x00007fff951f4a6f
Apple80211EventMonitoringInit2 + 53 2 CoreWLAN
0x00007fff951e6dc4 -[CWInterface initWithInterfaceName:] + 1358 3
CoreWLAN 0x00007fff951e412d +[CWInterface
interfaceWithName:] + 52 4 CoreWLAN
0x00007fff951e41a8 +[CWInterface interface] + 98


Edit 5:

Found this reference to deny system-socket in sandboxd, but no help yet.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:49:44+00:00Added an answer on June 8, 2026 at 10:49 am

    I am able to get SSID changes and updates with my app sandboxed using the networknotifier code in hardwaregrowler – I think because its looking for specific notifications.

    http://code.google.com/p/growl/source/browse/Extras/HardwareGrowler/?name=default

    Once I am notified of a change:

    if(wif==nil){
        wif = [CWInterface interface];
        [wif retain];
    }
    if(!wif.serviceActive){
        skip=TRUE;
    }
    if(wif.ssid==nil){
        skip=TRUE;
    }
    if(!skip)
    if(wif){
        NSLog(@"We are on the WiFi network: %@",wif.ssid);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

if i register my nhibernate session like this : builder.Register(i => DI.Get().BeginUnitOfWork()).As().InstancePerLifetimeScope(); now i
I don't register a domain for my name, any thing like www.firstName_lastName.name . Is
I created the register form in asp.net. And I want to validate Name. This
In zend framework I register my namespace like this (in application.php): 'autoloaderNamespaces' => array(
I do register a method for the ItemDataBound - Event like this: protected void
If I register a broadcast receiver say in my activity like this, @Override protected
containerBuilder .Register<IGraphClient>(context => { var graphClient = new GraphClient(new Uri(http://localhost:9999/db/data)); graphClient.Connect(); // Particularly this
Register<IA, A>(); class B { public IA A {get;set;}} //container inject this property because
Is it possible to register .php as a .net extension in IIS 7.5? This
I have this: ActiveAdmin.register User do controller do def show @user = User.find(params[:id]) show!

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.