Kay, we do something similar to Darryl & co (passing in a reference to the helper object in the init of the main object, and using singletons too for the same reason) but I'm not sure whether Fusebox4 could squeeze in this idea..
the thinking was, thanx to complex "objects" (ie CFC's) being passed byRef, what looks like decorating the main CFC with extra functionality is actually providing a pointer to the "helper" CFC more here: http://www.mail-archive.com/[email protected]/msg06886.html just a thought barry.b -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Darryl Lyons Sent: Tuesday, 1 March 2005 8:05 AM To: CFAussie Mailing List Subject: [cfaussie] Re: CFCs calling CFCs Kay, I personally don't have any problem with CFCs calling methods in other CFCs. I guess it all depends on the rules of the framework you are working within too. Within the framework we use (our own), we either create the component within the component, or initialise the component with another component. We also use singletons (only one "instance" of an object) heavily to improve performance. E.g. oCalendarItem = CreateObject"component","calendarItem").init(oCalendar, arg2, arg3); A method within the calendarItem component might use the oCalendar instance to check access levels, or something.. Darryl Lyons [EMAIL PROTECTED] wrote on 28/02/2005 05:21:43 PM: > Hi guys, > > I'm working finally on "Super Awesome Amazing Uber Tracker", my > nemesis project, and even thought it started life in CF 4.01 and > Fusebox 1, it's now going to be deployed in CF7, so I'm re-writing > the non-display code in CFCs. Most of the user functionality is going > to run from one screen, almost RIA-like, so I haven't bothered to use > Fusebox 3 or 4 or whatever, it's just one big CF template. > > I was wondering what the best practise is with regards to CFCs calling > other CFCs. All my Fusebox conditioning leads me to scream "NOOOOOO" > but there's a case where I would like to reuse an existing function in > another. Normally I'd shove both function calls off to a single > fuseaction but as I'm going the one big template approach I dunno what > to do. I'm starting to question the lack of any kind of controller > mechanism. > > Maybe I'll go crawling back to Fusebox 4... > > -- > Kay Smoljak > http://kay.smoljak.com/ > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > Aussie Macromedia Developers: http://lists.daemon.com.au/ To unsubscribe from this email please forward this email to [EMAIL PROTECTED] This email message is confidential and may be privileged. If you are not the intended recipient please forward the email to [EMAIL PROTECTED] and delete the original. ABN AMRO Morgans Limited and its associates hold or may hold securities in the companies/trusts mentioned herein. Any general advice included in this email has been prepared without taking into account your objectives, financial situation or needs. Before acting on the advice, you should consider its appropriateness or discuss with one of our investment advisors. ABN AMRO Morgans Limited (ABN 49 010 669 726 AFSL 235410) A Participant of ASX Group. A principal member of the Financial Planning Association. --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
