Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

XCode and Interface Builder help!

  • 26-02-2012 6:17pm
    #1
    Registered Users, Registered Users 2 Posts: 36


    I am EXTREMELY new to XCode and Interface Builder and I've said that I'd build a very simple app for someone.

    I've been buidling my interfaces without too much hassle, it's the coding that's getting on my tits.

    The main thing I want to know is, how do I actually set the buttons to open the files I want to open?

    My main window is the business logo and an 'Enter App' button, but I can't ****ing figure out how to actually enter the app.


Comments

  • Registered Users, Registered Users 2 Posts: 7,182 ✭✭✭Genghiz Cohen


    Try here


  • Registered Users, Registered Users 2 Posts: 2,040 ✭✭✭Colonel Panic


    You don't really list what you've tried or post code, so how can anyone help?

    The mechanism for tying UI elements is called Target-Action. You can define IBActions in code that do things like open files, open new windows, connect to databases whatever in response to thinks like click events.

    In IB, you can connect it all up and it just works (Via the magic of XIB files).


  • Registered Users, Registered Users 2 Posts: 11,989 ✭✭✭✭Giblet


    Apple Key + drag to the Controller header and wire up an IBAction


Advertisement