• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Password dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Password dialog


  • Subject: Password dialog
  • From: Tobias Bayer <email@hidden>
  • Date: Sun, 21 Nov 2004 15:12:41 +0100

Hello,

I am quite new to Cocoa and I would like to do the following:

I have a document-based application. I want the user to enter a password when he tries to unarchive a document from an archive file. (Right at the beginning of - (BOOL)loadDataRepresentation:(NSData *)data ofType:(NSString *)aType in MyDocument.m)
I would like a window to show up and ask for a password. When the user presses "OK" in that dialog, I want to evaluate the password in my code and continue loading the document if the password is right (the password may be hardcoded and does not have to be stored in any file).
What is the best practice to do this? I've tried around a bit with panels and sheets but I did not get what I wanted. Can someone give me a tiny step-by-step guide for fulfilling this task?


Greets

--
Tobias Bayer

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Keyed archiver
  • Next by Date: Filter with multiple bindings
  • Previous by thread: Re: Keyed archiver
  • Next by thread: Filter with multiple bindings
  • Index(es):
    • Date
    • Thread