• 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
IMService not defined
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: IMService not defined
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: NSTask and copying lots of small files
  • Next by Date: Re: NSTask and copying lots of small files
  • Previous by thread: Re: NSTask and copying lots of small files
  • Next by thread: Re: IMService not defined
  • Index(es):
    • Date
    • Thread