Re: SCNetworkConnection - Dictionary/Subdictionary
Re: SCNetworkConnection - Dictionary/Subdictionary
- Subject: Re: SCNetworkConnection - Dictionary/Subdictionary
- From: Stefan Lehrner <email@hidden>
- Date: Wed, 3 Oct 2007 21:03:19 +0200
Mike helped me with that:
NSDictionary *tmpDict = [NSDictionary dictionaryWithDictionary:SCNetworkConnectionCopyExtendendStatus(scncRef)];
id a = [[tmpDict objectForKey:@"PPP"] objectForKey:@"ConnectTime"]; if( a!= nil) printf("%i\n", [a intValue]); else printf("nicht verbunden\n");
The following occurs now:
1) When compiling I get the following: warning passing argument 1 of 'dictionarywithDictionary:' makes pointer from integer without a cast 2) When running in terminal (-t) I get:
Time ZeroLink: unknown symbol '_SCNetworkConnectionCopyExtendendStatus' Abort trap
Thanks for your time!
Best Regards,
Stefan
On Oct 3, 2007, at 8:25 PM, Stefan Lehrner wrote: Hi,
can someone please help me?
I need to get the "ConnectTime" from the Dictionary "SCNetworkConnectionExtendedStatus" subdirectory "PPP"
Sorry, I have no idea how to fetch this... I tried
id a = [[SCNetworkConnectionCopyExtendedStatus objectForKey:@"PPP"] objectForKey:@"ConnectTime"]; if (a != NULL) { printf ("%i\n", [a intValue]); } else { printf ("nicht verbunden\n"); }
But it compiled with an error message: /Users/sl/stats/stats.m:85: warning: invalid receiver type '¿¿v'
Maybe someone can bring into the darkness?
Thanks for your help,
Stefan
|
_______________________________________________
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