PDA

View Full Version : redirect from custom classes?




Darkroom
Jul 22, 2008, 05:55 PM
i've created a custom class called Drop Box : NSBox, which is just as NSBox but is used to accept drag and drop actions. all of the drag/drop methods are listed in the custom class. however, upon dropping data into the box i would like to direct the method to another method in a different class. i've tried using variables but they're just not recognized. i'm sure i have it all connected properly, as i do the same thing between other classes (although the other classes are not custom classes)...

i was told i should place all my custom classe's drag and drop methods in the app controller instead, but i just don't know how to connect the app controller's drag and drop methods to my custom NSBox class. should i use poseAsClass in my app controller's +(void)initialize method? if so, what should i pose the custom class as?