Re: Bindings Question

2010-09-24 Thread Quincey Morris
On Sep 24, 2010, at 20:09, livinginlosange...@mac.com wrote: > I have variable in my NSDocument subclass that is bound to the following path > _myNSArrayController.selection.subNSArrayController.selection.variableOfInterest. > > When I change the subNSArrayController's selection, I don't always

Bindings Question

2010-09-24 Thread livinginlosangeles
I have variable in my NSDocument subclass that is bound to the following path _myNSArrayController.selection.subNSArrayController.selection.variableOfInterest. When I change the subNSArrayController's selection, I don't always see my variable's setters getting called in my NSDocument subclass. W

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

2010-09-24 Thread Gideon King
Hi, I have a CALayer subclass with a CGPoint that I am animating using a CABasicAnimation. The layer is one of many sublayers in a layer hosting view. I set up the animation to point to my layer as the delegate, and use addAnimation:forKey: to add the animation. The animation works fine, but t

Re: Cocoa Text System - Temporarily Disabling Layout

2010-09-24 Thread Douglas Davidson
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" text view, and the model objects which > represent the the i

How do you remove an item from recentDocumentURLs?

2010-09-24 Thread bmaclist
If a valid document gets into my 'Recent Documents' menu, and then gets corrupted such that I am unable to open it, how can I programmatically remove it from the Recent Documents list (without removing everything in the list)? Documentation says overriding recentDocumentURLs isn't used by the D

Re: NSBox setContentView: messing with the cursor

2010-09-24 Thread Richard Somers
On Sep 23, 2010, at 10:18 PM, Richard Somers wrote: I have a NSBox in a portion of a window. The box is used to swap views into the window by setting the content view of the box. When a view is swapped in I need to set the cursor but NSBox is changing the cursor out from underneath me.

Re: invalid conversion from 'void*' to 'CGImage*' (QTMovie)

2010-09-24 Thread Quincey Morris
On Sep 24, 2010, at 05:13, Carles Gutierrez wrote: > CGImageRef capturedImage = [(QTMovie*)movie frameImageAtTime:time > withAttributes:attributes error:NULL]; > > I am getting this error for the last line: > error: invalid conversion from 'void*' to 'CGImage*' > > BUT I am NOT getting an error

Re: UITableview scrollStyle

2010-09-24 Thread Eric E. Dolecki
That's what I was getting after... the ability to use something besides white, black or black with a white border. I guess it will have to do. Odd we can specify colors for separators but not the scroll indicator. Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki

Re: UITableview scrollStyle

2010-09-24 Thread glenn andreas
On Sep 24, 2010, at 1:03 PM, Eric E. Dolecki wrote: > Is white and black our only options for the scroller indicator in a > UITableView? I was hoping to change mine to a blue since mine is on top of > black and would match the design better. > UITableView is a subclass of UIScrollView, so you c

invalid conversion from 'void*' to 'CGImage*' (QTMovie)

2010-09-24 Thread Carles Gutierrez
I'm getting a strange error I cannot fix. I have declared a QTMovie like this, using an opensource template (openframeworks): // It's a Cocoa QTMovie, void*'s so it's C++ compatible void*movie; I have the following code in my project: NSMutableDictionary *attributes = [NSMutableDictionary di

UITableview scrollStyle

2010-09-24 Thread Eric E. Dolecki
Is white and black our only options for the scroller indicator in a UITableView? I was hoping to change mine to a blue since mine is on top of black and would match the design better. Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://bl

Re: Cocoa Text System - Temporarily Disabling Layout

2010-09-24 Thread Martin Wierschin
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 just turn off text view width/height tracking for the container during

Re: "Settings" button in UITableView

2010-09-24 Thread Remco Poelstra
Op 24 sep. 2010 om 17:15 heeft Matt Neuburg het volgende geschreven: > On Fri, 24 Sep 2010 10:33:28 +0200, Remco Poelstra > said: >> Hi, >> >> I've a UITableView with UITableViewCell of style UITableViewStyleSubtitle. >> The table shows devices that the app has found on the Wifi network. When

Re: "Settings" button in UITableView

2010-09-24 Thread Remco Poelstra
Hi, Interesting point, I've been thinking about that as well. The problem is that I think it's confusing for the user. In the wifi settings pane, the user either selects the row or goes to a detail view. In my case the user goes to a tableview when he selects the row, but the disclosure button

Re: Cocoa Text System - Temporarily Disabling Layout

2010-09-24 Thread Ross Carter
> 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 > accommodate the number of lines in the new string. Resizing

Re: How to remove an item from recentDocumentURLs

2010-09-24 Thread Jerry Krinock
On 2010 Sep 22, at 11:11, bmaclist wrote: > f a valid document gets into my 'Recent Documents' menu, and then gets > corrupted such that I am unable to open it, how can I programmatically remove > it from the Recent Documents list (without removing everything in the list)? Create a category on

Re: Subclass NSTableView

2010-09-24 Thread Kevin Wojniak
It's supported, and people have been doing it for years. If you search the NSTableVIew doc page for "subclass" you'll see references to it. On Sep 24, 2010, at 7:50 AM, k...@highrolls.net wrote: > I don't see anything in the docs about subclassing NSTableView. Are there > any known issues in

Re: DO problem with NSConnection/NSSocketPortNameServer

2010-09-24 Thread Ken Tozier
Thanks Ken that worked I wrapped up the solution in an NSConnection category in case others run into this problem @interface NSConnection (NetworkServiceAdditions) + (id) networkServiceConnectionWithName:(NSString *) inName rootObject:(id) inRootObject; @end @implement

Re: "Settings" button in UITableView

2010-09-24 Thread Conrad Shultz
Hi Remco, I haven't done what you're asking so I don't have the sort of ready answer others on the list probably do, but I would ask why you don't use a detail disclosure button (i.e. the right arrow inside a blue circle) in each table cell for this purpose. UITableView very much supports this

Re: "Settings" button in UITableView

2010-09-24 Thread Matt Neuburg
On Fri, 24 Sep 2010 10:33:28 +0200, Remco Poelstra said: >Hi, > >I've a UITableView with UITableViewCell of style UITableViewStyleSubtitle. >The table shows devices that the app has found on the Wifi network. When >I click on a row I show a detailview of the device. This all works fine. >The devic

Re: Question in regards to UITableView

2010-09-24 Thread Eric E. Dolecki
Thanks Matt. Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net On Fri, Sep 24, 2010 at 11:05 AM, Matt Neuburg wrote: > On Thu, 23 Sep 2010 13:27:08 -0400, "Eric E. Dolecki" > said: > >I have a view that contains a U

Re: To make an application start everytime when another program starts

2010-09-24 Thread Matt Neuburg
On Fri, 24 Sep 2010 00:42:06 +0300, eveningnick eveningnick said: >I have written an application, that interacts with another >"stranger"-program by Applescript. The problem is that i need my >application to look like a plugin for "stranger program"- to display a I've written several applications

Visible Rect and objectValueForColumn

2010-09-24 Thread koko
Is it true that NSTableDataSource method tableView:objectValueForTableColumn:row is called as function of ther associated NSTableView's visible rect? If so, can one make adjustments to the visible rect thereby tricking NSTableDataSource into calling tableView:objectValueForTableColumn:row ?

Re: Question in regards to UITableView

2010-09-24 Thread Matt Neuburg
On Thu, 23 Sep 2010 13:27:08 -0400, "Eric E. Dolecki" said: >I have a view that contains a UITableView. It does not take up the full view >(320x480). When an item is selected, the thing is supposed to slide to the >left and bring in a new table in it's place. Other items in the main view do >not c

Subclass NSTableView

2010-09-24 Thread koko
I don't see anything in the docs about subclassing NSTableView. Are there any known issues in doing so? -koko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the m

Re: DO problem with NSConnection/NSSocketPortNameServer

2010-09-24 Thread Ken Thomases
On Sep 24, 2010, at 1:35 AM, Ken Tozier wrote: > However, when I try to use NSSocketPortNameServer instead of > NSPortNameServer, I get server = nil > > server = [[NSConnection serviceConnectionWithName: @"PMXServer" > rootObject: self > usingNameServer: [NSSocketPor

Re: What's the point of @properties?

2010-09-24 Thread Frederick Bartram
There is no magic in Objective-C. There is nothing that you do using Objective-C that cannot be done in C. Technically, it is ALL syntactic sugar but, imo, it is some of the best stuff on the planet. :) Yes, I think that it is useful to partition the syntax and think of properties as a m

Re: NSTimer memory management

2010-09-24 Thread Andreas Grosam
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 repeating timer is used. > What can happen is that your app gets

Re: NSTextView

2010-09-24 Thread Ken Ferry
Can you sample the app while it's hung and produce backtraces? I'm curious if perhaps you are violating Cocoa threading contracts. Are you aware that for the most part, the UI portions of Cocoa may not be used from background threads? Just adding text quickly should not be causing a hang. -Ken

Re: Cocoa Text System - Temporarily Disabling Layout

2010-09-24 Thread Jonathan Dann
On 23 Sep 2010, at 23:46, Martin Wierschin wrote: >>> The problem I've had to continuously hack around is that NSTextView, in >>> conjunction with NSLayoutManager, is rather eager to get the text to >>> re-layout. >> >> Maybe, to disable layout, set the textview's textContainer to nil, then >

Re: Cocoa Text System - Temporarily Disabling Layout

2010-09-24 Thread Jonathan Dann
On 23 Sep 2010, at 23:12, Ross Carter wrote: > Maybe, to disable layout, set the textview's textContainer to nil, then > restore it to enable layout? Hi Ross, I'll give it a go. I think tricks like that may help in some of the cases I have. Thanks, Jon _

"Settings" button in UITableView

2010-09-24 Thread Remco Poelstra
Hi, I've a UITableView with UITableViewCell of style UITableViewStyleSubtitle. The table shows devices that the app has found on the Wifi network. When I click on a row I show a detailview of the device. This all works fine. The device has some internal configuration settings that the user needs

Re: What's the point of @properties?

2010-09-24 Thread Michael Watson
On 21 Sep, 2010, at 18:48, Matt Neuburg wrote: > On Mon, 20 Sep 2010 03:56:20 -0700, Chris Hanson said: >> Don't think of dot syntax as syntactic sugar for sending messages. Think of >> dot > syntax as the way to access the state exposed by an object, and bracket syntax > as the way to have an o