icons showing blurry in finder

2012-09-10 Thread Rick C.
Hi, Has anyone had a problem with icons showing blurry in Finder recently? Meaning in the dock or Command-Tab view, etc. I am 99% sure this is nothing to do with my app, and I noticed this even before switching to the now recommended .iconset way of creating my icon. But it's a bit scary see

Re: Arghh bindings

2012-09-10 Thread Quincey Morris
On Sep 10, 2012, at 19:29 , Rick Mann wrote: > The docs say this is all for KVC compliance. But because the calls are almost > one-to-one when backed by a simple collection, I'm surprised they don't do it > for me. > > In other words, I could write code to dynamically implement > -insert:atIn

Re: binding an array controller to columns in an NSTableView

2012-09-10 Thread Dave Fernandes
Wait, did you mean you want consecutive items in the array to be consecutive table columns? I can't think of any way to do that. On 2012-09-10, at 10:02 PM, Dave Fernandes wrote: > Select the table column in Xcode, and bind its Value binding to the array > controller with Controller Key = arra

Re: Arghh bindings

2012-09-10 Thread Rick Mann
On Sep 10, 2012, at 19:27 , Charles Srstka wrote: > On Sep 10, 2012, at 9:23 PM, Quincey Morris > wrote: > >> It doesn't need "all the extra scaffolding". KVC will peer quite happily >> into your instance variables by default. What you don't get for free, in >> that case, is KVO compliance

Re: Arghh bindings

2012-09-10 Thread Rick Mann
On Sep 10, 2012, at 19:23 , Quincey Morris wrote: > On Sep 10, 2012, at 18:48 , Rick Mann wrote: > >> The docs say you can implement either insertObject: or insert. I >> figured it was smart enough to handle the plural-vs-singular change, >> otherwise it's grammatically awkward. > > Well,

Re: Arghh bindings

2012-09-10 Thread Charles Srstka
On Sep 10, 2012, at 9:23 PM, Quincey Morris wrote: > It doesn't need "all the extra scaffolding". KVC will peer quite happily into > your instance variables by default. What you don't get for free, in that > case, is KVO compliance for the property. The purpose of providing explicit > accesso

Re: Arghh bindings

2012-09-10 Thread Quincey Morris
On Sep 10, 2012, at 18:48 , Rick Mann wrote: > The docs say you can implement either insertObject: or insert. I figured > it was smart enough to handle the plural-vs-singular change, otherwise it's > grammatically awkward. Well, you were wrong about that. :) The intention is that to-many prop

Re: binding an array controller to columns in an NSTableView

2012-09-10 Thread Quincey Morris
On Sep 10, 2012, at 18:40 , Chuck Soper wrote: > I understand how to bind an array controller (for an entity) to rows in a > table, and how to bind a Text Field in the Table Cell View to an entity > property. I'm not sure how to go about this for columns in a table. I > assume that I may need to

Re: binding an array controller to columns in an NSTableView

2012-09-10 Thread Dave Fernandes
Select the table column in Xcode, and bind its Value binding to the array controller with Controller Key = arrangedObjects, and Model Key Path = attributeName for the entity. On 2012-09-10, at 9:40 PM, Chuck Soper wrote: > An have an "Color" entity in my data model (I'm just using the word > '

Re: Arghh bindings

2012-09-10 Thread Rick Mann
On Sep 10, 2012, at 18:39 , Graham Cox wrote: > > On 11/09/2012, at 11:29 AM, Rick Mann wrote: > >> - (void) >> insertConnection: (NSDictionary*) inConn >> atIndex: (NSUInteger) inIndex >> >> and the removal counterpart. Didn't help. I recall the mere presence of >> those in the past f

binding an array controller to columns in an NSTableView

2012-09-10 Thread Chuck Soper
An have an "Color" entity in my data model (I'm just using the word 'color' for demonstrative purposes). Typically, I only expect to have 6 or 8 colors for each instance. I'd like to create an NSArrayController for the Color entity, then bind it to columns in an NSTableView. I'll need to add and re

Re: Arghh bindings

2012-09-10 Thread Graham Cox
On 11/09/2012, at 11:29 AM, Rick Mann wrote: > - (void) > insertConnection: (NSDictionary*) inConn > atIndex: (NSUInteger) inIndex > > and the removal counterpart. Didn't help. I recall the mere presence of those > in the past fixed my issues, and I could still add and remove objects to

Arghh bindings

2012-09-10 Thread Rick Mann
Despite having successfully written several apps that use bindings, I still manage to screw it up each time I start a new one. I have a little object that has an NSMutableArray property called "connections". I tried to bind an NSArrayController to it, and then bind an NSTableView to that. But i

Re: nstableview without nsscrollview

2012-09-10 Thread Alfian Busyro
Kyle, thanks for your solution. Think very hard about this. Why would you want to do this? What would you do if your table view gained enough data that it no longer fit in the available space? So I planning to make two tables in one view but I don't want to separate that two tables with scroll,

Re: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?

2012-09-10 Thread Richard Somers
On Sep 10, 2012, at 5:59 AM, Motti Shneor wrote: > Although I don't need such heavy-weapons, and I don't at all deal with > programmatic bindings here, I'd still like (if possible) to learn some more > about the implementation of your internal tools. I didn't yet have a chance > to work with sw

Re: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?

2012-09-10 Thread Motti Shneor
There isn't much UI going on here. The representedObject is a CoreData managed object, updated frequently by remote server notifications. I'm observing a to-many relation somewhere down the attribute-path of the representedObject, trying to filter only those new/updated items of interest. Only

Re: Converting NSImage with multiple image representations (HiDPI+LowDPI) into grayscale NSImage

2012-09-10 Thread Ken Thomases
Please don't cross-post. On Sep 10, 2012, at 2:31 AM, Abhijit Apte wrote: > I can pick out NSImageRep objects of NSImage and then use [NSImageRep > CGImageForProposedRect:context:hints:] method to extract CGImageRef. I can do > grayscale conversion on each of these CGImageRefs, however I cannot

Re: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?

2012-09-10 Thread Mike Abdullah
On 10 Sep 2012, at 12:59, Motti Shneor wrote: > Hello and thanks Richard. > > Although I don't need such heavy-weapons, and I don't at all deal with > programmatic bindings here, I'd still like (if possible) to learn some more > about the implementation of your internal tools. I didn't yet h

Re: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?

2012-09-10 Thread Motti Shneor
Hello and thanks Richard. Although I don't need such heavy-weapons, and I don't at all deal with programmatic bindings here, I'd still like (if possible) to learn some more about the implementation of your internal tools. I didn't yet have a chance to work with swizzling, and maybe its time I

Re: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?

2012-09-10 Thread James Montgomerie
On 10 Sep 2012, at 11:40, Motti Shneor wrote: > My question is general. Supposedly I could NOT start observing once, and stop > it once. Reasons: > 1. There are many instances of that NSViewController > 2. This observation is quite frequent in time (could reach 100 times a second) > 3. The code t

Re: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?

2012-09-10 Thread Mike Abdullah
On 10 Sep 2012, at 11:40, Motti Shneor wrote: > Thanks everyone. You are ALL right in your comments, and still my problem > persists. > > In reality, I have at least 6 external "triggers" or state-changes that > determine (in a quite complicated way) whether or not I should observe that > at

Re: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?

2012-09-10 Thread Motti Shneor
Thanks everyone. You are ALL right in your comments, and still my problem persists. In reality, I have at least 6 external "triggers" or state-changes that determine (in a quite complicated way) whether or not I should observe that attribute. The (rather wise!) suggestion to start my key-path

Re: Code Comments

2012-09-10 Thread James Montgomerie
On 9 Sep 2012, at 17:57, koko wrote: > On Sep 9, 2012, at 7:35 AM, Mike Abdullah wrote: > >> NSXMLParser supports NSInputStream directly these days; consider moving to >> that > > That is excellent but for now I must run on 10.5.8 … Aside from the memory management issues already pointed out,

NSTableView & setContentMaxSize:

2012-09-10 Thread Arved von Brasch
Dear Dev List, I've noticed strange window resizing behaviour the last couple of weeks, possibly since I upgraded to Mountain Lion. This may also be a resolution thing, as I've only tried this on a Retina MacBook. I have Table Views in a number of views that are swapped in and out by the wind

Re: nstableview without nsscrollview

2012-09-10 Thread Kyle Sluder
On Sun, Sep 9, 2012, at 11:17 PM, Alfian Busyro wrote: > I'm thinking to have an un-scrollable nstableview in mac-osx app. > because I don't want user to scroll within the table, but have to Think very hard about this. Why would you want to do this? What would you do if your table view gained enou