• 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
difference between cocoa bundle and cocoa framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

difference between cocoa bundle and cocoa framework


  • Subject: difference between cocoa bundle and cocoa framework
  • From: Cheng Wei <email@hidden>
  • Date: Thu, 29 Jan 2004 18:33:33 -0800

HI

I am running into some strange problem related to objc and framework and hope some body
can give me a hint on what migh be happening.

Here is the short question:

What is the difference between cocoa framework and cocoa bundle


Here is the long description regarding what I am trying to do

I am trying to use some cocoa specific API from my C/C++ code. Following what Apple
has suggested, I created a Cocoa bundle that contains C-callable wrapper functions for all Cocoa
method whose functionality I want to access from. At run time, my C/C++ code will use
CFBundle API to load the bundle ( CFBundleLoadExecutable() ), find the symbol
( CFBundleGetFunctionPointerForName() ) and use it. This works perfect.

Then I try to change the bundle to framework, so it could be prebind and reduce load time.
My code was able to load the binary and find the symbol, But while I try to access the API, It crash
inside libobjc.A.dylib. the crash is happening while I try to call objc method [NSApplication sharedApplication]


any idea what might went wrong and how to fix it?

=> Wei

Reference:

Apple's document regarding to integrate cocoa and carbon

http://developer.apple.com/documentation/Cocoa/Conceptual/ CarbonCocoaDoc/index.html?http://developer.apple.com/documentation/ Cocoa/Conceptual/CarbonCocoaDoc/cci_chap1/chapter_1_section_1.html#// apple_ref/doc/uid/20001514
_______________________________________________
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: Any new/updated Cocoa books soon?
  • Next by Date: Finder-like Color Labels
  • Previous by thread: Re: init and dealloc
  • Next by thread: Finder-like Color Labels
  • Index(es):
    • Date
    • Thread