IMService not defined
IMService not defined
- Subject: IMService not defined
- From: Miguel Menchu <email@hidden>
- Date: Sat, 28 Jan 2006 14:26:21 -0500
Hi,
I've been playing around with the IMService.framework in Xcode but
haven't suceeded in getting my app to compile.
Although I have imported the headers (even explicitly stated it like this:
#import
"/System/Library/Frameworks/InstantMessage.framework/Headers/IMService.h")
Xcode complains that IMService is not found. I declare an object of type
IMService and it is this type that's not found. To give a better idea here's
my code:
NSRange theRange;
unsigned int start;
NSMutableString *theString;
theString = [NSMutableString
stringWithFormat:@"%@\n",[chatInputTextField stringValue]];
IMService objservice = [IMService new];
NSArray *services = [objservice allServices];
NSEnumerator *enumerator = [services objectEnumerator];
id anObject;
while (anObject = [enumerator nextObject]){
theString = [theString appendString: [anObject name]];}
[myBluetoothInterface sendData:(void*)[theString lossyCString]
length:[theString length]];
If this seems somewhat familiar, I tried inserting this code in
ChatClientController.m from the IOBluetooth examples (client example).
I even imported the framework into Xcode. Is there anything I'm missing
here? Am I instantiating the IMService object the right way?
Thanks a lot.
- Miguel.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden