• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
problem to get network service with morescf
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem to get network service with morescf


  • Subject: problem to get network service with morescf
  • From: yvelise deledicq <email@hidden>
  • Date: Fri, 10 Oct 2003 10:33:18 +0200

Hello,

I try to get services of all my sets. To do this I use MoreSCF.

If i do :
err = MoreSCCopyServiceIDs(CFStringCreateWithCString (nil, X ,
encoding), &serviceIDs, nil);
where X is the number of one of my set

i get my services in array

but if I use a "for" to do it for all sets i get an error in console :

here is the error

MoreAssertQ failure: (localServiceIDs == nil) || ((*localServiceIDs ==
nil))
MoreAssertQ failure: (localServiceIDs == nil) || ((*localServiceIDs ==
nil))
2003-10-10 10:31:27.821 confreseau[685] <CFArray 0x218b00
[0xa01303fc]>{type = mutable-small, count = 2, values = (
0 : <CFString 0x21d8a0 [0xa01303fc]>{contents = "8"}
1 : <CFString 0x21e0e0 [0xa01303fc]>{contents = "9"}
)}


Here is my code

prefs = SCPreferencesCreate(NULL,CFSTR("preferences"),NULL);

//creation d'un dictionnaire avec les diffirentes configs reseau
sets = (NSMutableDictionary *)SCPreferencesGetValue(prefs,
CFSTR("Sets"));

//nb des configs reseau
j=[sets count];
allsets = [sets allKeys];

serviceIDs = nil;

//recuperation des serviceID pour chaque set
for (j=0; j<[sets count];j++)
{
err = MoreSCCopyServiceIDs(CFStringCreateWithCString (nil,
[[allsets objectAtIndex:j] cString], encoding), &serviceIDs, nil);
}

NSLog(@"%@", serviceIDs);


can anyone explain me ????
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Loading a TTF font
  • Next by Date: Re: DO: Setting Protocol before leaving server...
  • Previous by thread: Re: Still problems with storing preferences
  • Next by thread: problem to get network service with morescf
  • Index(es):
    • Date
    • Thread