• 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
Re: Getting the Value of an NSSecureTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the Value of an NSSecureTextField


  • Subject: Re: Getting the Value of an NSSecureTextField
  • From: Clark Cox <email@hidden>
  • Date: Wed, 31 Mar 2004 20:41:57 -0500

On Mar 31, 2004, at 14:34, Andrew wrote:

> Hi,
>
> I have an NSTableView that has a column of NSSecureTextFields. In my
> -(void)tableView:setObjectValue:forTableColumn:row: method I need to
> find what string has been entered into this field. If I look at the
> string passed via setObjectValue: it is an NSString of bullets (the
> length is correct though). According to the documentation I need to
> use stringValue so I tried:
>
> [[aTableColumn dataCellForRow: rowIndex] stringValue]
>
> but that just gives me the last thing placed in a cell by
> -(id)tableView:objectValueForTableColumn:row: and not the users entry.
>
> I'm guessing I'm misunderstanding something...

Yes. Each column in the table has only a single cell that it reuses
for each row. A better idea would be to ask your data model object for
the value in that cell.

--
Clark S. Cox III
email@hidden
http://homepage.mac.com/clarkcox3/
http://homepage.mac.com/clarkcox3/blog/B1196589870/index.html

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Getting the Value of an NSSecureTextField
      • From: Andrew <email@hidden>
References: 
 >Getting the Value of an NSSecureTextField (From: Andrew <email@hidden>)

  • Prev by Date: Re: NSNotificationCenter not working
  • Next by Date: Re: Getting the Value of an NSSecureTextField
  • Previous by thread: Getting the Value of an NSSecureTextField
  • Next by thread: Re: Getting the Value of an NSSecureTextField
  • Index(es):
    • Date
    • Thread