• 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: How to create a reusable framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create a reusable framework


  • Subject: Re: How to create a reusable framework
  • From: Art Isbell <email@hidden>
  • Date: Wed, 15 Oct 2003 09:41:36 -1000

On Tuesday, October 14, 2003, at 02:21  PM, Owen McKerrow wrote:

Im trying to create a reusable frame work  but having a tough time of
it.
The only doc I could find n it was on page 69 of Inside Webobjects :
Enterprise Objects. It says that you make a new WebObjects Framework
project and then add the classes you wish to use.
So my question is what happens then ? Do you build the project ?

Yes. All source in the framework must be compiled just as in a regular project.


If so what file do you use ?

Not sure what you mean. Just build the project.

Do you need to place this file into
/Library/Frameworks ?

Yes. Project Builder can't always install products correctly, so the command-line utility pbxbuild should be used for installation (man pbxbuild). It must be run as root (sudo) due to file system permissions.


But during development, it's more convenient to build the framework project and create a soft link (ln -s) in /Library/Frameworks to the built framework (*.framework) in your project's build directory (the "build" directory, by default). Then when you make a change to the framework project, you don't have to reinstall it.

If I later change some code in one of the
classes, Im assuming that will require a rebuild ing of the frame work
?

Yes

Im also assuming that I will need to add the framework to the
projects that will be using it.

Yes.

Can I see the original code through the
framework ( just for things like checking what a function actually does
etc )  or will I need to open the framework project ?

I usually open the framework project because the framework source files aren't selectable in the main project. However, you can manually open framework source files in the main project if you'd prefer.


Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >How to create a reusable framework (From: Owen McKerrow <email@hidden>)

  • Prev by Date: London WebObjects Developers (Tutor?)
  • Next by Date: has exited due to signal 10 (SIGBUS).
  • Previous by thread: How to create a reusable framework
  • Next by thread: debugger question
  • Index(es):
    • Date
    • Thread