Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?

2010-09-26 Thread Jerry Krinock
On 2010 Sep 26, at 16:58, Ken Thomases wrote: > Have you tried actually using the method that's in his log > (-initWithObjects:count:), instead of a different one? Or even > +arrayWithObjects:count:? Yes, but to make a long story short, I was stymied by the rocket science of class clusters a

clearsContextBeforeDrawing a NOOP?

2010-09-26 Thread Matt Neuburg
I believe that UIView's clearsContextBeforeDrawing makes no difference - I can find no situation where changing its setting from YES to NO or vice versa actually changes the way drawing happens. Before I report this as a bug, can anyone provide a counter-example? Thx - m. PS Also, as I've said bef

Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?

2010-09-26 Thread Ken Thomases
On Sep 26, 2010, at 4:32 PM, Jerry Krinock wrote: > When my app runs for a particular user it emits these to the console once in > awhile: > > *** -[NSCFArray initWithObjects:count:]: attempt to insert nil object at > objects[0] > > However, the app does not crash for him when this happens. >

-[NSCFArray initWithObjects:count:]: nil object. Why no crash?

2010-09-26 Thread Jerry Krinock
When my app runs for a particular user it emits these to the console once in awhile: *** -[NSCFArray initWithObjects:count:]: attempt to insert nil object at objects[0] However, the app does not crash for him when this happens. I would like it to crash when this happens so I could get a crash

Re: Selection of object in popup button

2010-09-26 Thread Alejandro Rodríguez
Hey Mikael, In order to solve your issues you need to get away from selection. Providing the data available in your popups is a Model matter not a View/Controller issue so it should not depend on the current table selection. The easiest way to do this is using bindings. If you have an Array Con

Selection of object in popup button

2010-09-26 Thread Mikael Wämundson
Dear developers, In a table view I have in one column a popup button cell. The content array of the popup button depends on what object is selected in the table view and also a predicate object. I have noticed some problems when coding this, though: 1. If no row (object) is selected in the tab

Problem positioning the field editor for outline view

2010-09-26 Thread Gideon King
Hi, I have an outline view which uses variable row heights, and need to resize and position the field editor as the user edits the text. My code in my outline view is as follows: - (void)textDidChange:(NSNotification *)aNotification { NSInteger editedRow = [self editedRow]; if (

Table column alignment

2010-09-26 Thread koko
In IB I have set the properties of a table text field cell to be right justified but do not see this result when displaying data; i.e. the data remains left justified. Is there some other setting that must be made for the IB alignment setting to be used? -koko _

Re: NSTimer memory management

2010-09-26 Thread Jeff Johnson
On Sep 23, 2010, at 6:13 PM, slasktrattena...@gmail.com wrote: > In this particular case, though, I might just as well get rid of the > timer altogether and go for NSObject's > performSelector:afterDelay:/cancelSelector: instead. Jeff's > enlightening (and frightening!) discussion about implicit r

Re: NSTimer memory management

2010-09-26 Thread Jeff Johnson
On Sep 24, 2010, at 5:06 AM, Andreas Grosam wrote: > On Sep 23, 2010, at 3:50 AM, Jeff Johnson wrote: > >> Your object retains the timer, and the timer retains your object. That is >> obviously a kind of retain cycle. > I think, this kind of retain cycle is not a problem by itself when a > repe

Re: [ANN] AppKiDo 0.985

2010-09-26 Thread Matt Neuburg
On Sun, 26 Sep 2010 00:50:57 -0400, Andy Lee said: > > >This should fix the problems at least some folks have been having with the iOS 4.1 SDK. Works for me! Thanks - m. -- matt neuburg, phd = m...@tidbits.com,

Re: NAProgressIndicator and key value compliance

2010-09-26 Thread Hrishikesh Murukkathampoondi
Thanks a lot. This works. I looked in the NSProgressIndicator class documentation but did not realize there is a separate doc listing all bindings in Cocoa. Thank you Hrishi On 26-Sep-2010, at 7:57 PM, Dave DeLong wrote: > I think the keypath you want is "value", not "progress". > > See th

Re: What would cause my animation's delegate methods to not be called?

2010-09-26 Thread Matt Neuburg
On Sat, 25 Sep 2010 12:46:17 +1000, Gideon King said: >I set up the animation to point to my layer as the delegate, and use addAnimation:forKey: to add the animation In that order? addAnimation:forKey: must always be the last thing you do to an animation. Might not be the source of the problem, b

Re: NAProgressIndicator and key value compliance

2010-09-26 Thread Dave DeLong
I think the keypath you want is "value", not "progress". See the docs for more info: https://developer.apple.com/library/mac/documentation/Cocoa/Reference/CocoaBindingsRef/BindingsText/NSProgressIndicator.html Dave Sent from my iPhone On Sep 26, 2010, at 8:18 AM, Hrishikesh Murukkathampoondi

NAProgressIndicator and key value compliance

2010-09-26 Thread Hrishikesh Murukkathampoondi
Is NSProgressIndicator not key-value compliant? I am trying to bind he progress indicator to a value by doing the following: [pi bind:@"progress" toObject:dls withKeyPath:@"progVar" options:nil]; Where pi is a NSProgressIndicator* The object dls is my own and it has accessor methods set for

Re: Cocoa Text System - Temporarily Disabling Layout

2010-09-26 Thread Jonathan Dann
On 25 Sep 2010, at 01:23, Douglas Davidson wrote: > > On Sep 23, 2010, at 7:54 AM, Jonathan Dann wrote: > >> In our app, Kaleidoscope, I have 2 text views side-by-side. In one >> configuration the layout of the text in each text view is dependent both on >> regions of layout in the "sibling"

Re: Cocoa Text System - Temporarily Disabling Layout

2010-09-26 Thread Jonathan Dann
On 24 Sep 2010, at 19:59, Martin Wierschin wrote: > when I resize the window and need to adjust the frames of both scroll > views, calling -[NSTextView setFrame:] results in the layout manager > invalidating and ensuring layout for the newly visible character range. >>> >>> Why not

Re: Cocoa Text System - Temporarily Disabling Layout

2010-09-26 Thread Jonathan Dann
On 24 Sep 2010, at 18:13, Ross Carter wrote: > >> Yeah I have line numbers views set up in all of this too, for which I have >> to set the width before I set the strings of the text views so you don't see >> the views resizing on first load if the line numbers aren't wide enough to >> accommo

Get an absolute screen pos of a text cursor in another Carbon application from Cocoa app

2010-09-26 Thread eveningnick eveningnick
Hello! Is it possible to somehow determine the text caret's absolute screen position of a Carbon application? (I've sent it to carbon mailing list, but seems like no one is interested in carbon development anymore) What am i trying to do is to display a popup list window near the text cursor in Mi