Adding a basic login screen to a mac application
===

Hi im REALLY new to mac application building and trying out some different techniques, im trying to figure out how to put in a basic login (username and password) screen into my app. In my method i currently have this, attempting to use the if else statements. (the set background colour is just a temp replacement for opening the next window) 

    - (IBAction)loginb:(id)sender {
    if (m_username == [@"haseo98" NSString]){
        [_window setBackgroundColor:[NSColor redColor]];
    }
     else [_window setBackgroundColor:[NSColor blackColor]];
    }

The main problem in my opinion is with this line:

     if (m_username == [@"haseo98" NSString]){

how do i get xcode to read whats in the NSTextfield and compare it to "haseo98"?
