cocoa - Adding a login window to a document based application -
i creating small document based application. in need start login page i.e., when application launches, login page should appear first(which should not document based). when running application right now, mydocument.xib loaded. there way can load login window first instead of mydocument.xib? tried change mydocument.xib make login page.but "untitled" @ first login page.. quite stuck @ point..pls help..i relatively new cocoa!
make new class, add instance of mainmenu.xib, connect application object’s delegate
outlet instance, implement applicationshouldopenuntitledfile:
method. return no
method , application open untitled document when user asks it.
as login window, add new window mainmenu.xib , set visible on launch. place whatever logic need window in app delegate.
Comments
Post a Comment