• 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
Re: Calling a Cocoa library from C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling a Cocoa library from C


  • Subject: Re: Calling a Cocoa library from C
  • From: Nathan Sims <email@hidden>
  • Date: Mon, 14 Nov 2011 09:47:52 -0800

The help so far has been very edifying.

Now, I go to create a 'Cocoa Library' project in Xcode 3.2.6, and it generates a libaaa.h and a libaaa.m for me. But in the .m file, there's an '@implementation libaaa' line. I'm confused, I thought a Cocoa library was a number of *.o (compiled .m files) archived into a single file with a transfer vector table at the front. I'm unclear on what its expecting me to put in the libaaa.m '@implementation' area. Do I ignore it? libaaa.a isn't a class, so why does it have an @implementation?

-------------------------------------------------------------------

//
//  libaaa.h
//  libaaa
//
//  Created by Nathan Sims on 11/14/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface libaaa : NSObject {

}

@end

-------------------------------------------------------------------

//
//  libaaa.m
//  libaaa
//
//  Created by Nathan Sims on 11/14/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "libaaa.h"

@implementation libaaa
@end

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Calling a Cocoa library from C
      • From: Kyle Sluder <email@hidden>
    • Re: Calling a Cocoa library from C
      • From: Jens Alfke <email@hidden>
References: 
 >Re: Calling a Cocoa library from C (From: Greg Guerin <email@hidden>)
 >Re: Calling a Cocoa library from C (From: Thomas Davie <email@hidden>)

  • Prev by Date: Re: Implementing Full Screen for 10.7 but app should also run on 10.6
  • Next by Date: Re: Calling a Cocoa library from C
  • Previous by thread: Re: Calling a Cocoa library from C
  • Next by thread: Re: Calling a Cocoa library from C
  • Index(es):
    • Date
    • Thread