Workaround [Re: NSTextView refuses to scroll inside of an NSCollectionView]

2010-03-06 Thread mlist0...@gmail.com
For the archives- I ran into the problem where NSScrollviews from an NSCollectionViewItem's template view do not work properly in a collection view. This is a problem that was reported on this list back in 2007, and reported as a bug then, but is still broken in 10.6.2. I couldn't find a soluti

[Moderator] Re: cocoa-dev vs. Apple's dev forums? (OT)

2010-03-06 Thread Scott Anguish
I don’t see where this thread originated. But, it is closed. This is off-topic. Scott [moderator] On Mar 6, 2010, at 3:00 PM, Greg Guerin wrote: > Ulai Beekam wrote: > >> Which one would you prefer (assuming you had 99 bucks to spare each year >> without trouble) and why? > > > Which one?

Re: Is kCAOnOrderOut too good to be true?

2010-03-06 Thread Steven Degutis
This seems to suggest that the presentation layer has something to do with solving this issue, if it can be solved at all (and I'm hopeful that it can; I doubt Apple would have created kCAOnOrderOut solely to be broken from the start, and never fix it). But from everyone I've talked to, no one has

UIView as opposed to UIViewController...

2010-03-06 Thread Jon
I get indications from reading that you shouldn't really subclass UIView in general or to do routine things, and that any time you implement drawRect in the subclass of a UIView, you are taking a performance hit compared to doing some drawing in other ways? is this true, in the case of doin

Re: predicate for a Core Data fetch request rejected by SQL

2010-03-06 Thread Sean McBride
On 3/5/10 5:52 PM, Mark Sanvitale said: >However, my experience seems to demonstrates that the statement "We (the >system) cannot necessarily translate "arbitrary" predicates into SQL >queries" is also true, It definitely is. >and I believe this concept should be expanded to >spell out exactly w

Re: Hot to move focus to a button?

2010-03-06 Thread Kyle Sluder
On Sat, Mar 6, 2010 at 12:20 PM, Jonathan Chacón wrote: > How can I move the keyboard focus to a control? Buttons don't accept keyboard focus. See the documentation for -[NSView canBecomeKeyView] and the related conceptual documentation. --Kyle Sluder

Re: Is kCAOnOrderOut too good to be true?

2010-03-06 Thread Kyle Sluder
On Sat, Mar 6, 2010 at 3:08 PM, Steven Degutis wrote: > I've been reading the docs for Core Animation, specifically about > layer-actions, and it mentions a constant called kCAOnOrderOut which is > supposedly called when your layer is removed from its superlayer (or > hidden). However, if it's rem

Re: reading text rom Pages doc

2010-03-06 Thread Paul Sanders
On 6 Mar 2010, at 1:59 AM, Ruedi Heimlicher wrote: > I am reading text from Word docs without problems using the NSTextView > method readRTFDFromFile. > Trying to read text from Pages documents with file extension .pages fail an > returns empty strings. The same document > saved in Word form

Re: reading text rom Pages doc

2010-03-06 Thread Andrew Merenbach
On Mar 6, 2010, at 3:14 PM, Fritz Anderson wrote: > On 6 Mar 2010, at 1:59 AM, Ruedi Heimlicher wrote: > >> I am reading text from Word docs without problems using the NSTextView >> method readRTFDFromFile. >> Trying to read text from Pages documents with file extension .pages fail an >> re

Re: reading text rom Pages doc

2010-03-06 Thread Fritz Anderson
On 6 Mar 2010, at 1:59 AM, Ruedi Heimlicher wrote: > I am reading text from Word docs without problems using the NSTextView > method readRTFDFromFile. > Trying to read text from Pages documents with file extension .pages fail an > returns empty strings. The same document saved in Word format

Is kCAOnOrderOut too good to be true?

2010-03-06 Thread Steven Degutis
Hi all, I've been reading the docs for Core Animation, specifically about layer-actions, and it mentions a constant called kCAOnOrderOut which is supposedly called when your layer is removed from its superlayer (or hidden). However, if it's removed from superlayer, the animation returned for the k

reading text rom Pages doc

2010-03-06 Thread Ruedi Heimlicher
Hi I am reading text from Word docs without problems using the NSTextView method readRTFDFromFile. Trying to read text from Pages documents with file extension .pages fail an returns empty strings. The same document saved in Word format works fine. I was trying the NSString method stringWithCo

Re: Hot to move focus to a button?

2010-03-06 Thread Joanna Carter
Hi Jonathan > I'm trying to move keyboard cursor to a button but NSButton hasn't a setFocus > method. > > How can I move the keyboard focus to a control? [window makeFirstResponder:theButton]; Joanna -- Joanna Carter Carter Consulting ___ Cocoa-de

Hot to move focus to a button?

2010-03-06 Thread Jonathan Chacón
Hello, I'm trying to move keyboard cursor to a button but NSButton hasn't a setFocus method. How can I move the keyboard focus to a control? thanks Regards Jonathan Chacón Barbero Accessibility, usability and new technologies consultant Phone: +34 679953948 e-Mail: jonathan.cha...@

Re: cocoa-dev vs. Apple's dev forums? (OT)

2010-03-06 Thread Greg Guerin
Ulai Beekam wrote: Which one would you prefer (assuming you had 99 bucks to spare each year without trouble) and why? Which one? Both. They aren't mutually exclusive. Why? Because this question is off-topic for this list (which I assume is what you mean by cocoa-dev), but maybe not for

Re: [NSTableview] can't make selected text stay black

2010-03-06 Thread Matt Neuburg
On Fri, 5 Mar 2010 12:25:05 -1000, Kent Hauser said: >Hi, > >I'm trying to make a NSTableView selected row not look selected. I >subclassed NSTableView & added the following class & delegate methods: > >// remove selection indication >- (void)highlightSelectionInClipRect:(NSRect)clipRect >{ >N

Re: programatically show NSSegmentedCell menu?

2010-03-06 Thread David Hoerl
[This is for the archives - to finish off an unresolved thread] [Keywords programatically show display NSSegmentedCell NSSegmentedControl menu performClick ] The way to have the segmented cell open a menu is to do it in two steps: [segmentedControl setSelectedSegment:0]; // set the desired

Re: NSImageView bindings readonly ?

2010-03-06 Thread Keary Suska
On Mar 6, 2010, at 6:17 AM, Rich Dearlove wrote: > I've been trying to bind an NSImageView to a Dictionary element. > > I can get the NSImageView to display the image from the valuepath that is in > the dictionary, but I would like to be able drop an image onto the > NSimageview and have the b

cocoa-dev vs. Apple's dev forums?

2010-03-06 Thread Ulai Beekam
Which one would you prefer (assuming you had 99 bucks to spare each year without trouble) and why? _ Hotmail: Powerful Free email with security by Microsoft. https://signup.live.com/signup.

NSImageView bindings readonly ?

2010-03-06 Thread Rich Dearlove
I've been trying to bind an NSImageView to a Dictionary element. I can get the NSImageView to display the image from the valuepath that is in the dictionary, but I would like to be able drop an image onto the NSimageview and have the bindings set the path to the image into the dictionary elemen

Re: How a window was closed?

2010-03-06 Thread Eric Gorr
On Mar 5, 2010, at 8:21 PM, Klaus Backert wrote: > > On 5 Mar 2010, at 20:01, Eric Gorr wrote: > >> Why is -windowShouldClose: not reliable? > > May be, because the situation is as the method's documentation says: > > "This method may not always be called during window closing. Specifically,

Re: Quotation marks in NSMenu

2010-03-06 Thread Martin Hewitson
Perfect. Thank you! Martin On Mar 6, 2010, at 10:35 AM, Ken Thomases wrote: > On Mar 6, 2010, at 2:53 AM, Martin Hewitson wrote: > >> I guess this is an easy question, but I couldn't find the answer with google >> (probably due to difficulties in phrasing the question). >> >> If one looks in

Re: predicate for a Core Data fetch request rejected by SQL

2010-03-06 Thread Joanna Carter
Hi Mark > Thanks all for the sharing of thoughts. Glad someone could confirm that what > I was attempting did not make sense from the SQL perspective (which I am a > newbie to). But, like Sean wrote, Core Data seems to be presented as an > abstraction ABOVE the layer which implements the actu

Re: Quotation marks in NSMenu

2010-03-06 Thread Ken Thomases
On Mar 6, 2010, at 2:53 AM, Martin Hewitson wrote: > I guess this is an easy question, but I couldn't find the answer with google > (probably due to difficulties in phrasing the question). > > If one looks in Xcode under: File->Close File "foo.m" > > then one sees 'proper' opening and closing q

Quotation marks in NSMenu

2010-03-06 Thread Martin Hewitson
Dear list, I guess this is an easy question, but I couldn't find the answer with google (probably due to difficulties in phrasing the question). If one looks in Xcode under: File->Close File "foo.m" then one sees 'proper' opening and closing quotation marks. When I put quotation marks in a str

Re: Why CGPathAddCurveToPoint returns to the origin?

2010-03-06 Thread Gustavo Pizano
Hello Henry thanks for the methods, definitely after this I will re-check 3 times why things don't draw as I expect. G. On Mar 6, 2010, at 6:54 AM, Henry McGilton wrote: > > On Mar 5, 2010, at 10:07 AM, Gustavo Pizano wrote: > >> Hello Duncan. >> >> I want to draw the inside of a UIButton w