Re: KVO and object release timing (for a NSCollectionView)

2010-01-23 Thread vincent habchi
Hi Corbin, >> I have a NSButton in C to remove from the array controller the A object it >> represents. However, each time I click on that button, I first get a warning >> telling me that I remove an observed object before releasing the observer, >> and then the program crash, > > If you have

QTMovieLayer with CIFilter returning bigger content

2010-01-23 Thread Keith Duncan
I'm trying to apply CIFilters to images (using CALayer) and movies (using QTMovieLayer). However, some of these filters return a bigger image than the original content image/movie, such as a custom composite reflection filter I've written. My current solution is to render the images and movies

Re: View Handling

2010-01-23 Thread Paul Bruneau
I used this method on the app I'm currently working with and it is great. I can offer two tips. The first is make the tabs be visible in IB because then it's so much easier to switch between them in IB. Then in awakeFromNib you can make the tabs be invisible. The first tip is that I found that

Re: Weird exception

2010-01-23 Thread Alexander Bokovikov
On 22.01.2010, at 20:50, Keary Suska wrote: I would put my money on bindings. It shouldn't be too difficult to isolate the issue with the debugger. I've created a category and set a breakpoint within this method. Call stack leads me to NSApplication applicationWillFinishLaunching method,

Re: View Handling

2010-01-23 Thread Andy Lee
On Jan 23, 2010, at 11:55 AM, Paul Bruneau wrote: > I can offer two tips. The first is make the tabs be visible in IB because > then it's so much easier to switch between them in IB. You can also use the outline view in the main IB window. I think you can switch by double-clicking the tab you w

Re: NSImage loads garbage every other time?!?

2010-01-23 Thread Jens Alfke
On Jan 22, 2010, at 11:36 PM, sebi wrote: > why it reports such a strange image dimension for the other image (which is > in fact 96x152, so roughly 4.17 times that big)... Check the DPI of that image. NSImage respects the DPI setting, so if it's >72 it'll scale down the dimensions accordingl

Re: View Handling

2010-01-23 Thread Matthew Lindfield Seager
On Sunday, January 24, 2010, Andy Lee wrote: > On Jan 23, 2010, at 11:55 AM, Paul Bruneau wrote: >> I can offer two tips. The first is make the tabs be visible in IB because >> then it's so much easier to switch between them in IB. > > You can also use the outline view in the main IB window.  I t

Re: Weird exception

2010-01-23 Thread Kyle Sluder
On Fri, Jan 22, 2010 at 6:10 AM, Alexander Bokovikov wrote: > Browsing the console log I've found that my app raises an exception, when it > is launched in Mac OS X 10.4. I built it in 10.5 with 10.4 as a target > setting. I didn't see any problems there. The exception is caused by > unsupported s

Re: KVO and object release timing (for a NSCollectionView)

2010-01-23 Thread Kyle Sluder
On Sat, Jan 23, 2010 at 1:48 AM, vincent habchi wrote: > The problem is that when the represented object is removed from the array > controller, the corresponding NSView is not immediately released. Instead, > there is an implied CAAnimation (or something similar) that makes the NSView > slowly

Better Way to Add an Entity to an ArrayController

2010-01-23 Thread cocoa-dev
I have a core data app with a model where there is a one-to-many relationship between CD and Track (CD has an NSSet called tracks). The tracks are shown in an NSTableView and the content set is managed by an NSArrayController. To manually add a track the user presses the add button which runs

Re: rightMouseDown not working as documented?

2010-01-23 Thread mlist0...@gmail.com
On Jan 22, 2010, at 4:20 PM, Corbin Dunn wrote: > Please log a bug requesting our documentation to clarify this, or asking us > to change the behavior if you were expecting something else. Radar 7573344 _murat___ Cocoa-dev mailing list (Cocoa-dev@li

Re: Better Way to Add an Entity to an ArrayController

2010-01-23 Thread vincent habchi
Le 23 janv. 2010 à 21:43, cocoa-dev a écrit : > I have a core data app with a model where there is a one-to-many relationship > between CD and Track (CD has an NSSet called tracks). The tracks are shown > in an NSTableView and the content set is managed by an NSArrayController. To > manually

error accessing timer's userInfo

2010-01-23 Thread Chunk 1978
i'm receiving an unrecognized selector sent to instance crash with the following code, but i can't figure out why. the program crashes when trying to set the timer's user info into local variables in fadeCallBack: ___ //Create Dictionary To Add To The Timer's userInfo Par

Re: Unexpected PDFKit behavior in -[PDFPage string]

2010-01-23 Thread Joel Norvell
Dear Cocoa-dev People, I'd queried the list about PDFKit selection behavior: >NSString * currentPageData = [currentPage string]; > > behaves quite differently on a Snow Leopard build than it did under Leopard. > > A partial description of the issue is that the order of table data > is not c

Re: error accessing timer's userInfo

2010-01-23 Thread Kyle Sluder
On Sat, Jan 23, 2010 at 4:33 PM, Chunk 1978 wrote: > i'm receiving an unrecognized selector sent to instance crash with the > following code, but i can't figure out why.  the program crashes when > trying to set the timer's user info into local variables in > fadeCallBack: Have you looked at the

Re: error accessing timer's userInfo

2010-01-23 Thread Graham Cox
On 24/01/2010, at 11:33 AM, Chunk 1978 wrote: > NSUInteger soundID = [[timer userInfo] integerForKey:@"soundID"]; > float targetVolume = [[timer userInfo] > floatForKey:@"targetVolume"]; > float duration = [[timer userInfo] floatForKey:@"duration"]; Check t

Re: Unexpected PDFKit behavior in -[PDFPage string]

2010-01-23 Thread Graham Cox
On 24/01/2010, at 11:33 AM, Joel Norvell wrote: > If anyone on the PDFKit team is listening, I think it would be kind to allow > row-by-row selection behavior to be effected within an app if so doing didn't > complicate the PDFKit codebase! File bugs. This isn't an official feedback channel s

Re: NSImage loads garbage every other time?!?

2010-01-23 Thread Matt Neuburg
On Sat, 23 Jan 2010 08:36:20 +0100, sebi said: >Never mind, I found out that I had two images with the same name in two different resource folders. Since Xcode doesn't create subfolders within the apps resource folder it copies only one of the images. Thats fine, however it's still interesting why

Re: QTMovieLayer with CIFilter returning bigger content

2010-01-23 Thread David Duncan
On Jan 23, 2010, at 6:06 AM, Keith Duncan wrote: > I'm trying to apply CIFilters to images (using CALayer) and movies (using > QTMovieLayer). However, some of these filters return a bigger image than the > original content image/movie, such as a custom composite reflection filter > I've written

Playlists, Smart Lists and Filters

2010-01-23 Thread Trygve Inda
I have an array of data, many records, each with several fields... Like an iTunes library. I need to crate dumb playlists (user selected records from the main library) And smart playlists (criteria-enforced records form the main library) When viewing wither the library, a playlist or smart playl

Decoder problem

2010-01-23 Thread Austin Ray
I'm trying to play video in an iPhone application. However, whenever I load the application onto my device and try to play video, I get this in the console in XCODE: warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.2 (7D11)/Symbols/System/Library/Vi

Re: Weird exception

2010-01-23 Thread Alexander Bokovikov
On 24.01.2010, at 1:12, Kyle Sluder wrote: You should turn on zombies and run your app in the debugger on 10.4. Could you please describe it more particularly, as it's not clear for me what should I do exactly. Should I transfer all my sources into 10.4 OS? Or should I use Terminal to run