[Cocoa]Accessing methods in another Class

Discussion in 'Programming' started by Dhingcha, Aug 16, 2008.

  1. #1
    I have a method called loginUser in another class, but it's being called from the login window. I assumed since [self updateData]; worked in another class then [Controller loginUser]; would work. Unfortunately it gives me the error warning: "Controller" may not respond to "+loginUser". Any ideas as to why this would happen? If you need more information please inform me.

    Edit: Woops forgot to add Controller *controller; into the header file.
     
    Dhingcha, Aug 16, 2008 IP