Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the Value of an NSSecureTextField



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.


References: 
 >Getting the Value of an NSSecureTextField (From: Andrew <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.