Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom frameworks with references to Application and Session



Not entirely sure what you are asking. You can get a reference to the application like this

CustomApp app = (CustomApp) WOApplication.application();

The session would need to be passed somehow as there are multiple.

Chuck


On Sep 23, 2004, at 9:59 PM, Marek Wawrzyczny wrote:

Hi all,

This is probably a very basic question but, I am just trying to get my head around passing my Application and Session classes into one of my frameworks.

The scenario is, I have several (different) applications that use the same controller class base (and other helper classes). Obviously I want to move these classes into a framework I can share. Some of these classes refer to custom Application or Session methods.

I have already defined Application and Session interface classes (that define these methods), but what is the best way of passing the actual Application class to the framework, I'd like to avoid passing references to Application in constructors or special accessor methods to my controller/helper classes. I am curious as to how WO deals with resolving the -DWOApplicationClass parameter into a class... can I implement something similar...

Marek Wawrzyczny

software engineer
-------------------------->
ish group pty ltd
http://www.ish.com.au
7 Darghan St Glebe 2037 Australia
phone +61 2 9660 1400   fax +61 2 9660 7400

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global- village.net


This email sent to email@hidden

--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >Custom frameworks with references to Application and Session (From: Marek Wawrzyczny <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.