Re: Two controllers in a window, how do I get one to run a function in another?

2009-08-30 Thread Graham Cox
On 31/08/2009, at 11:07 AM, BareFeet wrote: Hi All, I want to have two NSObjects (controllers) - one for the tableview and all the actions that it needs to perform, and one for the web view. I am having difficulty getting the tableview controller to tell the webview controller to displa

Re: nsuserdefaults woes

2009-08-30 Thread Rick C.
thanks again jerry. actually i found the conflict was with my own domain and as you said i don't see a way to write to a shared domain. the docs do basically say this and after experimenting i found it out first hand. ok off to CFPrefs. thanks again, rick __

What sound plays after an Installer runs?

2009-08-30 Thread aaron smith
Hey All, Does anyone know which sound plays after an Installer package runs? (When the Green Circle with checkmark shows). Thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

Re: _NSAutoreleaseNoPool missing in Snow Leopard

2009-08-30 Thread Kyle Sluder
On Aug 30, 2009, at 6:29 PM, Roland King wrote: What does that macro do - does it create an autoreleased NSString from its argument and then NSLog it? If so, that NSString is being leaked as the message suggests. Except his previous stack trace seems to indicate that the at-fault code is

Re: _NSAutoreleaseNoPool missing in Snow Leopard

2009-08-30 Thread Klaus Backert
On 31 Aug 2009, at 03:29, Roland King wrote: DKT_LOG("initialize ODE library"); What does that macro do - does it create an autoreleased NSString from its argument and then NSLog it? If so, that NSString is being leaked as the message suggests. The macro DKT_LOG is implemented in the fo

Re: _NSAutoreleaseNoPool missing in Snow Leopard

2009-08-30 Thread Kyle Sluder
Definitely sounds like a framework bug. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsub

Re: _NSAutoreleaseNoPool missing in Snow Leopard

2009-08-30 Thread Roland King
Klaus Backert wrote: On 31 Aug 2009, at 02:45, Kyle Sluder wrote: On Aug 30, 2009, at 5:33 PM, Klaus Backert online.de> wrote: No Objective-C program code of my own has been executed up to this point. I have not been able to manage this. Are you doing anything before calling NSApplicat

Re: _NSAutoreleaseNoPool missing in Snow Leopard

2009-08-30 Thread Klaus Backert
On 31 Aug 2009, at 02:45, Kyle Sluder wrote: On Aug 30, 2009, at 5:33 PM, Klaus Backert online.de> wrote: No Objective-C program code of my own has been executed up to this point. I have not been able to manage this. Are you doing anything before calling NSApplicationMain? My NSApplicati

Re: _NSAutoreleaseNoPool missing in Snow Leopard

2009-08-30 Thread Joar Wingfors
On 30 aug 2009, at 17.33, Klaus Backert wrote: For me such a message, e.g. *** _NSAutoreleaseNoPool(): Object 0xa0c13290 of class NSCFString autoreleased with no pool in place - just leaking appeared in Mac OS X 10.5.8 already, and has not been there in 10.5.7. The function name has only on

Re: Finding information about deprecated methods / what replaces them?

2009-08-30 Thread Joar Wingfors
On 30 aug 2009, at 17.27, aaron smith wrote: Quick question. Take this for example (http://developer.apple.com/mac/library/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/DeprecationAppendix/AppendixADeprecatedAPI.html#//apple_ref/c/func/CGDisplayCurrentMode ) - this method is dep

Re: Two controllers in a window, how do I get one to run a function in another?

2009-08-30 Thread BareFeet
Hi All, I want to have two NSObjects (controllers) - one for the tableview and all the actions that it needs to perform, and one for the web view. I am having difficulty getting the tableview controller to tell the webview controller to display a particular page. And I can't find anythi

Re: _NSAutoreleaseNoPool missing in Snow Leopard

2009-08-30 Thread Kyle Sluder
On Aug 30, 2009, at 5:33 PM, Klaus Backert wrote: No Objective-C program code of my own has been executed up to this point. I have not been able to manage this. Are you doing anything before calling NSApplicationMain? --Kyle Sluder ___ Cocoa-de

Re: _NSAutoreleaseNoPool missing in Snow Leopard

2009-08-30 Thread Klaus Backert
On 30 Aug 2009, at 23:00, Seth Willits wrote: In Snow Leopard I started seeing this: *** __NSAutoreleaseNoPool(): Object 0x100a49ec0 of class NSCFString autoreleased with no pool in place - just leaking I have no idea where this is happening so I tried to break in _NSAutoreleaseNoPool j

Re: _NSAutoreleaseNoPool missing in Snow Leopard

2009-08-30 Thread Seth Willits
On Aug 30, 2009, at 2:05 PM, Keith Duncan wrote: Does anyone know what I *should* be breaking on? I'd obviously like to track this down. A fallback option is to break on NSLog/printf to see where that message is being output from, but you could be using those frequently elsewhere dependin

Finding information about deprecated methods / what replaces them?

2009-08-30 Thread aaron smith
Hey All, Quick question. Take this for example (http://developer.apple.com/mac/library/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/DeprecationAppendix/AppendixADeprecatedAPI.html#//apple_ref/c/func/CGDisplayCurrentMode) - this method is deprecated in 10.6. What are the general prac

Re: Notification when display resolution changes?

2009-08-30 Thread Ken Thomases
On Aug 30, 2009, at 6:45 PM, Gabriel Zachmann wrote: Is there a way to have my Cocoa app get notified when the display resolution changes? The -applicationDidChangeScreenParameters: application delegate method or the NSApplicationDidChangeScreenParametersNotification notification. Cheers,

Notification when display resolution changes?

2009-08-30 Thread Gabriel Zachmann
Is there a way to have my Cocoa app get notified when the display resolution changes? (while my app is running) The reason is that I am trying to make the window of my app always as large as the screen. Currently I do that in the init method of my window with NSRect visibleFrame = [

Re: Async NSURLConnection + Concurrent NSOperation = Not possible under Mac OS X 10.6?

2009-08-30 Thread Ken Thomases
On Aug 30, 2009, at 3:52 PM, Adam R. Maxwell wrote: On Aug 30, 2009, at 12:12 PM, Ken Thomases wrote: Well, that's polling and is generally discouraged. Yes, but Apple's runloop documentation recommends using a timeout: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/M

Remote host issue with Xcode 3.x

2009-08-30 Thread Gernot A. Pohl
--- XCode 3.1.3 --- My problem appears to be the same like Jay Martin had: http://lists.apple.com/archives/Xcode-users/2008/Jun/msg00546.html that is, the XCode preferences - SCM panel says "Host offline" for my SSH connection, while browsing (XCode menu SCM-Repositories) and operat

New Developer Docs for Cocoa and QTKit Developers with Snow Leopard Release

2009-08-30 Thread Tom Maremaa
Hello Cocoa and QTKit developers, Just a short announcement to the mailing list about the availability of three new and updated QTKit developer docs for you to take a look at, with the worldwide release of Snow Leopard: • The "QTKit Application Tutorial" (70 pages in PDF) at

Re: _NSAutoreleaseNoPool missing in Snow Leopard

2009-08-30 Thread Julien Jalon
It's __ (2 underscores) and not _ -- Julien from his iPhone Le 30 août 2009 à 23:00, Seth Willits a écrit : In Snow Leopard I started seeing this: *** __NSAutoreleaseNoPool(): Object 0x100a49ec0 of class NSCFString autoreleased with no pool in place - just leaking I have no idea wher

Re: _NSAutoreleaseNoPool missing in Snow Leopard

2009-08-30 Thread Kyle Sluder
On Aug 30, 2009, at 2:00 PM, Seth Willits wrote: Does anyone know what I *should* be breaking on? I'd obviously like to track this down. Check the 10.6 Foundation release notes. A lot of this stuff was removed with no replacement. --Kyle Sluder ___

Re: _NSAutoreleaseNoPool missing in Snow Leopard

2009-08-30 Thread Keith Duncan
Does anyone know what I *should* be breaking on? I'd obviously like to track this down. A fallback option is to break on NSLog/printf to see where that message is being output from, but you could be using those frequently elsewhere depending on what you're writing. Keith _

_NSAutoreleaseNoPool missing in Snow Leopard

2009-08-30 Thread Seth Willits
In Snow Leopard I started seeing this: *** __NSAutoreleaseNoPool(): Object 0x100a49ec0 of class NSCFString autoreleased with no pool in place - just leaking I have no idea where this is happening so I tried to break in _NSAutoreleaseNoPool just like the Apple documentation at http://develo

Re: Async NSURLConnection + Concurrent NSOperation = Not possible under Mac OS X 10.6?

2009-08-30 Thread Adam R. Maxwell
On Aug 30, 2009, at 12:12 PM, Ken Thomases wrote: On Aug 30, 2009, at 1:47 PM, Adam R. Maxwell wrote: On Aug 30, 2009, at 10:18 AM, Ken Thomases wrote: On Aug 30, 2009, at 10:29 AM, Steven Degutis wrote: I either would need to use NSURLConnection in a stand-alone class, or use it synchro

Re: background-only apps (was: Alert dialog in agent app?)

2009-08-30 Thread Gabriel Zachmann
According to LSBackgroundOnly apps are "not intended to be visible to users", and later it suggests that you use LSUIElement if your app has a UI. Thanks a

Re: Normalize an NSAttributedString

2009-08-30 Thread Ross Carter
On Aug 29, 2009, at 5:29 PM, Ken Thomases wrote: On Aug 29, 2009, at 3:48 PM, Ross Carter wrote: On Aug 29, 2009, at 1:22 PM, Ken Thomases wrote: On Aug 29, 2009, at 11:46 AM, Ross Carter wrote: Suppose an NSAttributedString comprises the string o + umlaut in decomposed form, plus one at

Re: NSScroller width

2009-08-30 Thread Brandon Walkin
Use +scrollerWidth and +scrollerWidthForControlSize. Here's a custom scroller subclass from BWToolkit which might help you out: http://bitbucket.org/bwalkin/bwtoolkit/src/tip/BWTransparentScroller.m Brandon On 2009-08-30, at 5:25 AM, Massimiliano Gargani wrote: Hi there, I've googled a lot

Re: Async NSURLConnection + Concurrent NSOperation = Not possible under Mac OS X 10.6?

2009-08-30 Thread Ken Thomases
On Aug 30, 2009, at 1:47 PM, Adam R. Maxwell wrote: On Aug 30, 2009, at 10:18 AM, Ken Thomases wrote: On Aug 30, 2009, at 10:29 AM, Steven Degutis wrote: I either would need to use NSURLConnection in a stand-alone class, or use it synchronously inside a non-concurrent NSOperation subclass.

Re: Async NSURLConnection + Concurrent NSOperation = Not possible under Mac OS X 10.6?

2009-08-30 Thread Adam R. Maxwell
On Aug 30, 2009, at 10:18 AM, Ken Thomases wrote: On Aug 30, 2009, at 10:29 AM, Steven Degutis wrote: I either would need to use NSURLConnection in a stand-alone class, or use it synchronously inside a non-concurrent NSOperation subclass. (Please correct me if I'm wrong!) As Adam Maxwel

Re: KVO: when to stop observing?

2009-08-30 Thread Jerry Krinock
On 2009 Aug 29, at 23:59, Michel Schinz wrote: I'm therefore looking for better solutions, and would be interested to know what people have come up with. I believe the best answer to the question of "when to stop observing" is "as soon as possible". I was having trouble with a Core Data

Re: nsuserdefaults woes

2009-08-30 Thread Jerry Krinock
On 2009 Aug 30, at 08:11, Rick C. wrote: if that's the only way i'll have to look into it. one question though, is there anything i could have done that i can no longer read using addSuiteNamed along with arrayForKey like i mentioned in my original post? Maybe it's not an array any more

Re: parsekit on snow leopard

2009-08-30 Thread Greg Guerin
Martin Hewitson wrote: I was wondering if anyone has had occasion to compile parsekit on snow leopard. If I set the active architecture to x86_64 and the SDK to 10.6, then I get a bunch of errors like: multiple methods named '-floatValue' found warning: using '-(float)floatValue' warning: a

Re: parsekit on snow leopard

2009-08-30 Thread Kyle Sluder
On Aug 30, 2009, at 10:44 AM, Martin Hewitson > wrote: Does anyone have a clue what I could try next, or does anyone know of any alternative to parsekit? You could run ConvertCocoa64, or manually adapt the code to use the new 64-bit numerical type macros. On 32-bit, CGFloat == float, so t

parsekit on snow leopard

2009-08-30 Thread Martin Hewitson
Hi list, I was wondering if anyone has had occasion to compile parsekit on snow leopard. If I set the active architecture to x86_64 and the SDK to 10.6, then I get a bunch of errors like: multiple methods named '-floatValue' found warning: using '-(float)floatValue' warning: also found '-(C

Re: Async NSURLConnection + Concurrent NSOperation = Not possible under Mac OS X 10.6?

2009-08-30 Thread Ken Thomases
On Aug 30, 2009, at 10:29 AM, Steven Degutis wrote: Thanks for your detailed response. You're welcome. Originally the plan for this class was to be an NSOperation on the advise of Steve Streza who mentioned that on Snow Leopard, NSOperationQueues take advantage of GCD, which would improve

Re: Async NSURLConnection + Concurrent NSOperation = Not possible under Mac OS X 10.6?

2009-08-30 Thread Adam R. Maxwell
On Aug 30, 2009, at 8:29 AM, Steven Degutis wrote: So, the idea here was basically to create an NSOperation subclass that could deal with dependencies, and fit inside an NSOperationQueue (for plenty of reasons), which used the async methods for getting HTTP data. However, either removing NS

Re: KVO: when to stop observing?

2009-08-30 Thread Steven Degutis
If you're targeting 10.6 only, this is taken care of you automatically according to the Foundation release notes. Any KVO observers will be automagically removed as observers by the runtime, and thus you won't have to do it at all. The release notes hint that the appropriate solution for 10.5 is to

Re: Framebuffer question

2009-08-30 Thread Jean-Daniel Dupas
Le 30 août 2009 à 17:04, Development a écrit : I cannot seem to find a answer to this in google or the docs so I'm asking here. Is there a way to get a filehandle to the screen? Preferably spitting out NSData or a compatible datatype? Screen capture code is to slow for what I'm working on an

Re: Async NSURLConnection + Concurrent NSOperation = Not possible under Mac OS X 10.6?

2009-08-30 Thread Steven Degutis
Ken, Thanks for your detailed response. Originally the plan for this class was to be an NSOperation on the advise of Steve Streza who mentioned that on Snow Leopard, NSOperationQueues take advantage of GCD, which would improve performance. Previously (read: in the source of CocoaREST's class SDNet

Re: nsuserdefaults woes

2009-08-30 Thread Rick C.
thanks jerry, if that's the only way i'll have to look into it. one question though, is there anything i could have done that i can no longer read using addSuiteNamed along with arrayForKey like i mentioned in my original post? just a couple of hours ago it was working for me over and over ag

Re: x86_64 "Symbol not found" problem

2009-08-30 Thread Donnie Lee
I don't know why this problem was so I just re-writed this part of code, now all is OK. Donnie. On Sun, Aug 30, 2009 at 2:39 PM, Jean-Daniel Dupas wrote: > > Le 30 août 2009 à 12:27, Donnie Lee a écrit : > >> Hello, >> >> I have a problem with loadable plugin bundle for an application. I >> compi

Framebuffer question

2009-08-30 Thread Development
I cannot seem to find a answer to this in google or the docs so I'm asking here. Is there a way to get a filehandle to the screen? Preferably spitting out NSData or a compatible datatype? Screen capture code is to slow for what I'm working on and I was hoping to spit the data in to a QT forma

Re: Async NSURLConnection + Concurrent NSOperation = Not possible under Mac OS X 10.6?

2009-08-30 Thread Ken Thomases
On Aug 30, 2009, at 9:09 AM, Steven Degutis wrote: Unfortunately, the code I wrote completely broke yesterday when I upgraded to Snow Leopard (fortunately I hadn't published it yet for that same reason) and it was narrowed down to the NSOperation subclass not getting any of NSURLConnection

Re: Applying color to template images

2009-08-30 Thread Mitchell Livingston
That does the trick. Thanks! On Aug 29, 2009, at 11:35 PM, Brandon Walkin wrote: I have a category on NSImage that should do what you need: - (NSImage *)tintedImageWithColor:(NSColor *)tint { NSSize size = [self size]; NSRect imageBounds = NSMakeRect(0, 0, size.width, size.heig

Async NSURLConnection + Concurrent NSOperation = Not possible under Mac OS X 10.6?

2009-08-30 Thread Steven Degutis
Hi all, I've been writing a class that will be the new primary class for my CocoaREST library, and the class is basically an NSOperation that fetches data over HTTP protocol and parses it for the user. When writing this subclass of NSOperation about a week or two ago, it was using NSURLConnection

Re: nsuserdefaults woes

2009-08-30 Thread Jerry Krinock
I may be wrong, because I'm in a hurry here, but I believe ethat - addSuiteNamed only works for reading preferences. If you want to write preferences to another app you've got to use the CFPreferences API (unfortunately). ___ Cocoa-dev mailing li

SCNetworkReachability and impact of Snow Leopard

2009-08-30 Thread Stuart Malin
I am writing some code on 10.5 Leopard that uses SCNetworkReachability. The latest documentation (SysConfig.pdf dated 2009-07-30) shows the Network Reachability Flags (with names such as kSCNetworkReachabilityFlagsReachable) as being declared in SCNetworkReachability.h as of 10.6. However

nsuserdefaults woes

2009-08-30 Thread Rick C.
hello again, hoping someone can shed some light on what i might be doing wrong here. i'm trying to read, compare, and possibly edit a shared plist in which the entry i'm interested in is an array which goes a bit deep. here's what i'm doing so far: NSUserDefaults *defaults = [NSUserDefaults

Re: x86_64 "Symbol not found" problem

2009-08-30 Thread Jean-Daniel Dupas
Le 30 août 2009 à 12:27, Donnie Lee a écrit : Hello, I have a problem with loadable plugin bundle for an application. I compile my plugin under Snow Leopard with "-undefined dynamic_lookup" option, because it uses classes from a main app. While I compile it as 32-bit all works OK (both plugin

x86_64 "Symbol not found" problem

2009-08-30 Thread Donnie Lee
Hello, I have a problem with loadable plugin bundle for an application. I compile my plugin under Snow Leopard with "-undefined dynamic_lookup" option, because it uses classes from a main app. While I compile it as 32-bit all works OK (both plugin and app runs in 32-bit mode), but when I compile i

Re: virtual ivars

2009-08-30 Thread Jean-Daniel Dupas
Le 30 août 2009 à 10:37, Uli Kusterer a écrit : Am 30.08.2009 um 00:39 schrieb Todd Heberlein: So here is a slightly more detailed scenario while still trying to keep it as simple as possible. My "Model" is captured in C++ code (i.e., "CppObj" below). I want to use normal Cocoa "View" obj

Re: Get error message about registered observers when Object receives dealloc message

2009-08-30 Thread Roland King
On 30-Aug-2009, at 17:46, Andreas Grosam wrote: b. The release notes say that it was wrong for this message to appear "when an object observed by a second object was deallocated, its deallocation caused the release of the second object, and the second object correctly unregistered

Re: Get error message about registered observers when Object receives dealloc message

2009-08-30 Thread Andreas Grosam
On Aug 30, 2009, at 7:12 AM, Quincey Morris wrote: On Aug 29, 2009, at 20:43, Roland King wrote: Here are the release notes on this by the way. I note they only talk about running in non-GC mode. However in both cases mentioned an object has unregistered as an observer of an observed objec

NSFileManager copyItem and 64 Bit not able to copy a symlink?

2009-08-30 Thread Thomas Bauer
Dear List! I recently switched to using NSFileManagers copyItemAtPath method instead of the deprecated copyPath. When I compile (and run) the application in question in 64 Bit, the new method is obviously not able to copy a symbolic link but instead returns an NSError: Error Domain=NSPOSI

NSScroller width

2009-08-30 Thread Massimiliano Gargani
Hi there, I've googled a lot before post this question but I'm stucked. I'm trying to subclassing NSScroller to change the aqua look and, most important, to change the width of the vertical scroll bar. My subclass is: - (void)drawRect:(NSRect)rect { [self drawKnobSlot]; [sel

Re: How to extract the "Artist" information of an song file?

2009-08-30 Thread Uli Kusterer
Am 30.08.2009 um 06:51 schrieb James: In my application, there are three kinds of audio files--AAC, mp3 and AIFF. So how should I to do for the AIFF? Does AIFF even contain artist information? I don't think they usually do. But AIFF is based on the IFF block file format, so you'd probabl

Re: virtual ivars

2009-08-30 Thread Uli Kusterer
Am 30.08.2009 um 00:39 schrieb Todd Heberlein: So here is a slightly more detailed scenario while still trying to keep it as simple as possible. My "Model" is captured in C++ code (i.e., "CppObj" below). I want to use normal Cocoa "View" objects (e.g., an NSTextField) and "Controller" obje

KVO: when to stop observing?

2009-08-30 Thread Michel Schinz
Hi, In my program, I rely heavily on key-value observing (KVO), which I find really useful. However, I haven't found a good way to know when I should stop observing, i.e. call "removeObserver:forKeyPath:". Until now, my solution has been to start observing in the designated initialiser, a