Re: NSTextView vs NSTextField

2010-11-11 Thread Ron Fleckner
On 12/11/2010, at 12:45 AM, Eric Gorr wrote: > It seems to me that NSTextView can do everything that NSTextField can and > more. For example, on a NSTextView, one can use the method > setHorizontallyResizable: and then call sizeToFit to get it to resize itself > vertically instead of horizonta

Re: Detecting reading a key in KVC

2010-11-11 Thread Ken Thomases
On Nov 11, 2010, at 4:57 PM, Graham Cox wrote: > On 12/11/2010, at 3:30 AM, Ken Thomases wrote: > >> You should not override -setValue:forKey: or -valueForKey: if you can avoid >> it. Instead, implement the methods -setValue:forUndefinedKey: and >> -valueForUndefinedKey:. They are precisely f

Fwd: NSSecureTextFieldCell detected a field editor ((null)) - Solved.

2010-11-11 Thread FF
Thanks Aki. The problem vanished after redoing the password panel. Pity that still I don't know the source of the problem : -( Jack. Begin forwarded message: > From: Aki Inoue > Date: November 11, 2010 12:55:58 PM EST > To: FF > Cc: cocoa-dev@lists.apple.com > Subject: Re: NSSecureTextFieldC

Re: Detecting reading a key in KVC

2010-11-11 Thread Lee Ann Rucker
On Nov 11, 2010, at 2:57 PM, Graham Cox wrote: > > On 12/11/2010, at 3:30 AM, Ken Thomases wrote: > >> You should not override -setValue:forKey: or -valueForKey: if you can avoid >> it. Instead, implement the methods -setValue:forUndefinedKey: and >> -valueForUndefinedKey:. They are precise

NSHTTPCookieStorage

2010-11-11 Thread Michael Link
Did something recently change with sharedHTTPCookieStorage no longer sharing session cookies? -- Michael___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: Detecting reading a key in KVC

2010-11-11 Thread Kyle Sluder
On Thu, Nov 11, 2010 at 2:57 PM, Graham Cox wrote: > Understood, but the OP's problem as I understand it is that it's not that the > key is undefined, but the value associated with it is uninitialized. So > rather than return nil, or zero, he wants to trigger a remote fetch of the > value. KVC

Re: Detecting reading a key in KVC

2010-11-11 Thread Graham Cox
On 12/11/2010, at 3:30 AM, Ken Thomases wrote: > You should not override -setValue:forKey: or -valueForKey: if you can avoid > it. Instead, implement the methods -setValue:forUndefinedKey: and > -valueForUndefinedKey:. They are precisely for implementing "dynamic" > properties in this manner

Re: RTFDFromRange returns different data

2010-11-11 Thread gMail.com
Thank you Glenn. Me too I thought of a time stamp because I tried to call that function several times with 1 second interval and the data was different by 1, then 2, then 3... I workedaround the problem archiving the data directly from the attributedString this way: NSData* stringData = [NSKeyedA

Re: sending msgs to nsoperation threads

2010-11-11 Thread jonat...@mugginsoft.com
On 11 Nov 2010, at 20:06, Andreas Grosam wrote: > > On Nov 11, 2010, at 4:48 PM, jonat...@mugginsoft.com wrote: > >>> In case you would like to do similar things when using NSOperation and >>> NSOperationQueue you might consider to send the message to the run loop >>> instead, e.g.: -perform

Re: sending msgs to nsoperation threads

2010-11-11 Thread Andreas Grosam
On Nov 11, 2010, at 4:48 PM, jonat...@mugginsoft.com wrote: >> In case you would like to do similar things when using NSOperation and >> NSOperationQueue you might consider to send the message to the run loop >> instead, e.g.: -performSelector:target:argument:order:modes: >> >> Of course you w

[MEET]: Los Angeles CocoaHeads tonight, 7:30pm

2010-11-11 Thread Rob Ross
Greetings LA CocoaHeads. Tonight we have our monthly meeting. We don't have a formal presentation planned, but we'll have an informal discussion of recent Apple announcements such as the new Mac App store, upcoming features in 10.7 "Lion", and general Q&A about Mac and iDevice development. (

Re: NSSecureTextFieldCell detected a field editor ((null))

2010-11-11 Thread Aki Inoue
Somehow NSSecureTextFieldCell is receiving a nil field editor in -selectWithFrame:... or -editWithFrame:. Aki On 2010/11/10, at 10:21, FF wrote: > A NSSecureTextField works fine, but the msg. in the Console after entering > password says: > NSSecureTextFieldCell detected a field editor ((null)

Re: NSTableView within NSScrollView in code

2010-11-11 Thread Kyle Sluder
On Nov 11, 2010, at 4:29 AM, Patrick Mau wrote: > After all the setup, I add an observer to the NSClipView > that is the scrollvies's contentView. NSTableView already does this exact thing when it is set up properly. There should be no need for you to do this yourself. > > The corresponding s

Re: Detecting reading a key in KVC

2010-11-11 Thread Ken Thomases
On Nov 11, 2010, at 7:11 AM, Graham Cox wrote: > Just write a wrapper for -setObject:forKey: and -valueForKey: The first just > calls the same method on its (mutable) dictionary, the second can first check > for whether the value is actually present and if not kick off some task to > fetch it,

Re: NSTextView vs NSTextField

2010-11-11 Thread Eric Gorr
Thanks for the info (both you and Ross). You may be interested in: http://damnyouautocorrect.com/ On Nov 11, 2010, at 10:54 AM, Erik Buck wrote: > Change Filed to Field where appropriate. Grumble...auto-correct...grumble. > > --- On Thu, 11/11/10, Erik Buck wrote: > >> From: Erik Buck >>

Re: NSTextView vs NSTextField

2010-11-11 Thread Erik Buck
Change Filed to Field where appropriate. Grumble...auto-correct...grumble. --- On Thu, 11/11/10, Erik Buck wrote: > From: Erik Buck > Subject: Re: NSTextView vs NSTextField > To: "Cocoa Dev" , "Eric Gorr" > > Date: Thursday, November 11, 2010, 10:50 AM > NSTextField doesn't display or edit >

Re: NSTextView vs NSTextField

2010-11-11 Thread Erik Buck
NSTextField doesn't display or edit text at all. It uses an instance of NSTextView calle dthe "filed editor" to provide all text dispay and editing. So you are right: NSTextFiled cannot do anythingthat NSTextView can't because NSTextField uses NSTextView. NSTextView is a large and heavy weigh

Re: sending msgs to nsoperation threads

2010-11-11 Thread jonat...@mugginsoft.com
On 11 Nov 2010, at 14:37, Andreas Grosam wrote: > >> You have to do a bit more management but you get the control you need. > IMHO, using NSOperation/NSOperationQueue is exactly what I consider a higher > level API. It has also additional cool features which give you even more > control where N

Re: NSTextView vs NSTextField

2010-11-11 Thread Ross Carter
> If so and if I am programmatically creating one of these controls, is there > any reason why I would want to use a NSTextField? > (I know that IB uses a NSTextField for Labels, for example...is this just a > historical artifact?) For editing multiple strings it is more efficient to have multip

Re: iPad 4.1 (deploy to 3.2.2) error

2010-11-11 Thread Thomas Davie
On 11 Nov 2010, at 14:50, Steve Bird wrote: > > On Nov 11, 2010, at 9:39 AM, colors wrote: > >> Wow I am so sorry I posted to this forum. I thought this was a forum for >> engineers, but turns out everyone on it is a lawyer. >> >> I fat fingered a 2 instead of a 1 in the subject field and en

Re: iPad 4.1 (deploy to 3.2.2) error

2010-11-11 Thread Steve Bird
On Nov 11, 2010, at 9:39 AM, colors wrote: > Wow I am so sorry I posted to this forum. I thought this was a forum for > engineers, but turns out everyone on it is a lawyer. > > I fat fingered a 2 instead of a 1 in the subject field and ended up with a > bunch of emails about legal agreements.

Re: iPad 4.1 (deploy to 3.2.2) error

2010-11-11 Thread colors
Wow I am so sorry I posted to this forum. I thought this was a forum for engineers, but turns out everyone on it is a lawyer. I fat fingered a 2 instead of a 1 in the subject field and ended up with a bunch of emails about legal agreements. btw, if there are any engineers out there who are int

Re: sending msgs to nsoperation threads

2010-11-11 Thread Andreas Grosam
On Nov 11, 2010, at 10:35 AM, jonat...@mugginsoft.com wrote: > > On 11 Nov 2010, at 07:13, Shane wrote: > >> I've got an NSOperation thread running, but I'd like to be able to >> send a message to it so that the thread can be shut it down, or >> possibly other commands. >> >> What is considere

Re: RTFDFromRange returns different data

2010-11-11 Thread glenn andreas
On Nov 11, 2010, at 8:12 AM, gMail.com wrote: > RTFDFromRange returns different data even if I do not change the variables > mTextMutableString nor mDocAttributes. I just call several time: > > NSData *textData = [mTextMutableString RTFDFromRange:textRange > documentAttributes:mDocAttributes];

Invitation to connect on LinkedIn

2010-11-11 Thread amit jain via LinkedIn
LinkedIn amit jain requested to add you as a connection on LinkedIn: -- Cameron, I'd like to add you to my professional network on LinkedIn. - amit Accept invitation from amit jain http://www.linkedin.com/e/-bq75p7-ggdq471k-3v/AdB-vBGUaPDD8CAZ

RTFDFromRange returns different data

2010-11-11 Thread gMail.com
RTFDFromRange returns different data even if I do not change the variables mTextMutableString nor mDocAttributes. I just call several time: NSData *textData = [mTextMutableString RTFDFromRange:textRange documentAttributes:mDocAttributes]; NSLog(@"textData %@", textData); And 'every time' I get a

NSTextView vs NSTextField

2010-11-11 Thread Eric Gorr
It seems to me that NSTextView can do everything that NSTextField can and more. For example, on a NSTextView, one can use the method setHorizontallyResizable: and then call sizeToFit to get it to resize itself vertically instead of horizontally. Is this correct? If so and if I am programmatica

Re: Detecting reading a key in KVC

2010-11-11 Thread Remco Poelstra
Op 11-11-2010 14:11, Graham Cox schreef: On 12/11/2010, at 12:01 AM, Remco Poelstra wrote: Seems so :) I just tried that and observing the change of properties is now non-functional, as the request for observing is not forwarded to the NSDictionary behind my own object. Seems I've to overrid

Re: Detecting reading a key in KVC

2010-11-11 Thread Graham Cox
On 12/11/2010, at 12:01 AM, Remco Poelstra wrote: > Seems so :) I just tried that and observing the change of properties is now > non-functional, as the request for observing is not forwarded to the > NSDictionary behind my own object. Seems I've to override a whole lot of > methods to forward

Re: Detecting reading a key in KVC

2010-11-11 Thread Remco Poelstra
Op 11-11-2010 13:48, Graham Cox schreef: On 11/11/2010, at 11:41 PM, Remco Poelstra wrote: Leaves me wondering whether I should hardcode all properties (82 items) on my own object or try to make a more intelligent subclass of NSMutableDictionary. Or maybe a composite object? If the requir

Re: Detecting reading a key in KVC

2010-11-11 Thread jonat...@mugginsoft.com
On 11 Nov 2010, at 12:41, Remco Poelstra wrote: > Op 10-11-2010 15:31, Quincey Morris schreef: >> On Nov 10, 2010, at 06:10, jonat...@mugginsoft.com wrote: >> >>> I was just thinking that the overrides would provide a convenient point to >>> process all requests for undefined properties. >>> D

Re: Detecting reading a key in KVC

2010-11-11 Thread Graham Cox
On 11/11/2010, at 11:41 PM, Remco Poelstra wrote: > Leaves me wondering whether I should hardcode all properties (82 items) on my > own object or try to make a more intelligent subclass of NSMutableDictionary. > Or maybe a composite object? If the requirement is simply to distinguish between

Re: Detecting reading a key in KVC

2010-11-11 Thread Remco Poelstra
Op 10-11-2010 15:31, Quincey Morris schreef: On Nov 10, 2010, at 06:10, jonat...@mugginsoft.com wrote: I was just thinking that the overrides would provide a convenient point to process all requests for undefined properties. Depends on the design and requirements of the model I suppose. I do

Re: NSTableView within NSScrollView in code

2010-11-11 Thread Patrick Mau
Hallo Jerry Thanks a lot. You got me going ... Here's what I did: defaultCenter = [NSNotificationCenter defaultCenter]; [defaultCenter addObserver:self selector:@selector(clipviewFrameChanged:) name:NSViewFrameDidChangeNotification

Re: NSData magic change

2010-11-11 Thread jonat...@mugginsoft.com
On 11 Nov 2010, at 11:57, gMail.com wrote: > I find this issue very puzzling. > > I read a plist dictionary containing one ony key-value: an NSData coming a > RTFD string. I read this value, I do NO changes, then I re-save it to a > different plist file, and now the 2 files are different. I have

NSData magic change

2010-11-11 Thread gMail.com
I find this issue very puzzling. I read a plist dictionary containing one ony key-value: an NSData coming a RTFD string. I read this value, I do NO changes, then I re-save it to a different plist file, and now the 2 files are different. I have inspected these 2 plist files with TextWrangler, and t

Re: Moderator - Re: iPad 4.2 (deploy to 3.2.2) error

2010-11-11 Thread Alastair Houghton
On 10 Nov 2010, at 19:00, Laurent Daudelin wrote: > Note: I am not an Apple's employee and have agreed/signed all NDAs. > > Now, although I agree with the above comment from Scott, if you haven't > signed an NDA specifically with Apple, how do you know when you're talking > about something that

Re: Moderator - Re: iPad 4.2 (deploy to 3.2.2) error

2010-11-11 Thread Alastair Houghton
On 10 Nov 2010, at 17:54, Shawn Bakhtiar wrote: > Only those who have actually signed an NDA with Apple are subject to this, > and they are certainly free to refrain from comment. > > Everyone else is free to talk, blog, and post about it how they please. Perhaps you could refrain from giving i

Re: sending msgs to nsoperation threads

2010-11-11 Thread jonat...@mugginsoft.com
On 11 Nov 2010, at 07:13, Shane wrote: > I've got an NSOperation thread running, but I'd like to be able to > send a message to it so that the thread can be shut it down, or > possibly other commands. > > What is considered a good way to send a message to an NSOperation > thread from the apps ma

Re: sending msgs to nsoperation threads

2010-11-11 Thread Andreas Grosam
On Nov 11, 2010, at 8:13 AM, Shane wrote: > I've got an NSOperation thread running, but I'd like to be able to > send a message to it so that the thread can be shut it down, or > possibly other commands. > > What is considered a good way to send a message to an NSOperation > thread from the apps