• 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: Class ?> Framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Class ?> Framework


  • Subject: Re: Class ?> Framework
  • From: Phillip Morelock <email@hidden>
  • Date: Tue, 28 May 2002 14:30:12 -0700

A couple of things I forgot:

1. In order to get your source files into the framework, you copy/move them
into the project directory for the framework, then go to "Project-->Add
Files" and add them.

2. In order to "import" or "include" the header from your framework (AFTER
you've done the "Project-->Add Frameworks" step) -- you import it like this:

#import <NameOfFramework/MyHeader.h>

NOT like this:
#import "MyHeader.h"

cheers
fillup




On 5/28/02 2:03 PM, "Phillip Morelock" <email@hidden>
wrote:

> I don't know if it's right but this is what I think I did:
>
> Make a Cocoa Framework from the project builder template. (File-->New
> Project...)
>
> Then in your project that needs to use this framework, go to "project-->add
> frameworks") and add the built framework (source only doesn't work for me --
> you have to add the ".framework" file). This means you must have first
> built your file as a framework using this framework project template.
>
> This may not be the "Right" way but I __believe__ this is how I did it. I
> have a (not-updated-in-it's-been-too-long) framework project available at
> http://www.phillipmorelock.com/examples/cocoadata/
>
> You can look at that to get more answers if you like.
>
> cheers
> fillup
>
> P.S. I know you are frustrated (and I feel your pain as a co-newbie), but
> please try not to use all caps, it's generally considered rude and
> unconstructive. Good luck and feel free to email me off-list if my answer
> is unclear or wrong, and I'll post any conclusions back to the list unless a
> better answer has appeared by then.
>
>
> On 5/28/02 1:45 PM, "Mamdouh" <email@hidden> wrote:
>
>> Hi all...
>>
>> I4m (still) trying to turn a class i have into a framework, so it can be
>> "recycled" and used in other apps... The problem is i dont know how to
>> make it so i can use it as we use the Cocoa frameworks when we type:
>>
>> [yada doYada:withYada];
>>
>> I tryed just typing:
>>
>> [nameOfMyClass nameOfMyMethodInThatClass:nil];
>>
>> but this didnet work because the compiler needs some kind of factory
>> method (which i dont understand how to make, or even what to do)!
>> What i4m looking for is a Cocoa torurial or sample code of a framwork!
>> The only framework example from Apple is Carbon and not very good
>> (actually it mostly explains the use of frameworks in PB)!
>>
>> Could anybody help me??? JUST ANY KIND OF HELP!!!!
>>
>> TIA
>> Mamdouh
>> Student/Programmer
>> Denmark
>> _______________________________________________
>> 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.
> _______________________________________________
> 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.
_______________________________________________
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.

References: 
 >Re: Class ?> Framework (From: Phillip Morelock <email@hidden>)

  • Prev by Date: Re: NSCalendarDate and +dateWithString:
  • Next by Date: Re: Length of globallyUniqueString
  • Previous by thread: Re: Class ?> Framework
  • Next by thread: Saving a NSMutableArray into a plain ASCII file
  • Index(es):
    • Date
    • Thread