Re: NSOutlineView - display NSButtonCell only for leaf node with outlineView:dataCellForTableColumn:item: method

2011-10-03 Thread Gilles Celli
Quincey, thanks for the quick reply! As you suggested I tried the different options (putting a button cell in IB) and also returning with a non-nil cell for the NSOutlineView…but I'm not quite sure what you mean: Do I need to remove the "buttonColumn" and have only one column ? And then generat

Debugging stack traces, reprised

2011-10-03 Thread Graham Cox
A good while back, I asked a question about how to get from a byte offset to a line number: http://www.cocoabuilder.com/archive/cocoa/276690-debugging-stack-traces.html Does this information still hold for the latest tools, i.e. LLVM and debugger? Is it possible to extract the relevant line wi

Re: Debugging stack traces, reprised

2011-10-03 Thread John Hawkinson
Graham Cox wrote on Mon, 3 Oct 2011 at 23:59:15 +1100 in <04d75b8e-913f-4ea0-b9af-403d73b19...@bigpond.com>: > Is it possible to extract the relevant line without actually running > the code in the debugger? I ask because I have a situation where I > have a crash report (with byte offset), I als

Re: [SOLVED] Re: Mystery of the missing symbol

2011-10-03 Thread glenn andreas
On Oct 2, 2011, at 9:37 PM, Don Quixote de la Mancha wrote: >>> No, that's not something that the deployment target affects. The whole >>> point of specifying one version via the SDK but an earlier version via >>> deployment target is that you can use the features of the later version >>> cor

Retain/Release and Properties clarification

2011-10-03 Thread John Tsombakos
Hello, I have a question about release/retain and properties. Now I get the whole "if you allocate it, you have to release it", but with properties I need some clarification. I'm using an AVAudioPlayer to play a sound, and I'm initializing it in the viewDidLoad by calling a routine to get the sound

Re: Retain/Release and Properties clarification

2011-10-03 Thread Steve Sisak
At 10:14 AM -0400 10/3/11, John Tsombakos wrote: @interface AudioPlayerViewController : UIViewController { AVAudioPlayer *audioPlayer; } @property (retain) AVAudioPlayer *audioPlayer; In the .m file: @synthesize audioPlayer; in viewDidLoad: audioPlayer = [self getSoundFile:"soundfile.wav"]; You

Re: Retain/Release and Properties clarification

2011-10-03 Thread Eeyore
Not enough morning coffee for you, On Oct 3, 2011, at 7:29 AM, Steve Sisak wrote: > You do, indeed want: > > self.audioPlayer = [self getSoundFile:"soundfile.wav"]; > > or > > [self setAudioPlayer = [self getSoundFile:"soundfile.wav"]]; I think you meant [self setAudioPlayer:[self getSoundFil

Re: Retain/Release and Properties clarification

2011-10-03 Thread John Tsombakos
On Mon, Oct 3, 2011 at 10:29 AM, Steve Sisak wrote: >> At 10:14 AM -0400 10/3/11, John Tsombakos wrote: >> @interface AudioPlayerViewController : UIViewController { >> AVAudioPlayer *audioPlayer; >> } >> @property (retain) AVAudioPlayer *audioPlayer; >> >> In the .m file: >> @synthesize audioPlaye

spin_lock$VARIANT$mp in Sketch

2011-10-03 Thread Boyd Collier
Recently, a rather ordinary document-based application that I've been working on started misbehaving in the following way: If I create a new document, put some text into it, save it, and then try to open it again, I get a "EXEC_BAD_ACCESS" error. I spent a lot of time trying to find the bug th

Re: spin_lock$VARIANT$mp in Sketch

2011-10-03 Thread Quincey Morris
On Oct 3, 2011, at 09:38 , Boyd Collier wrote: > 6. Select Open... from the file menu > > Often, I get the following results : […] > On the 4th line, above, the message ' Thread 7: Program received signal: > "EXEC_BAD_ACCESS". ' is displayed. > In the area showing threads, Thread 7 reads "TFSV

Re: Retain/Release and Properties clarification

2011-10-03 Thread Andreas Mayer
Am 03.10.2011 um 16:14 schrieb John Tsombakos: > audioPlayer = [self getSoundFile:"soundfile.wav"]; > ... > > in getSoundFile routine: > AVAudioPlayer *snd; > ... > snd = [[[AVAudioPlayer alloc] initWithContentsOfURL:url error:&error] The question was already answered, but I wanted to point out

Re: Retain/Release and Properties clarification

2011-10-03 Thread Charles Srstka
On Oct 3, 2011, at 10:14 AM, John Tsombakos wrote: > (and will also change to use the underscore ivar names too - I had done that > previously, but...well, didn't this time.) I recommend using some other prefix system instead of the underscore, for two reasons: 1. Apple reserves the underscore

Re: Retain/Release and Properties clarification

2011-10-03 Thread Kyle Sluder
On Mon, Oct 3, 2011 at 11:23 AM, Charles Srstka wrote: > 1. Apple reserves the underscore prefix for their own use, so you could, at > least theoretically, clash with a superclass ivar this way, and [snip] > > 3. If I use an ivar prefix that no one else uses (as far as I know), then I > can ma

Re: NSOutlineView - display NSButtonCell only for leaf node with outlineView:dataCellForTableColumn:item: method

2011-10-03 Thread Quincey Morris
On Oct 3, 2011, at 01:36 , Gilles Celli wrote: > As you suggested I tried the different options (putting a button cell in IB) > and also returning with a non-nil cell for the NSOutlineView…but I'm not > quite sure what you mean: Do I need to remove the "buttonColumn" and have > only one column

Re: Retain/Release and Properties clarification

2011-10-03 Thread Charles Srstka
On Oct 3, 2011, at 1:31 PM, Kyle Sluder wrote: >> 1. Apple reserves the underscore prefix for their own use, so you could, at >> least theoretically, clash with a superclass ivar this way, and > > [snip] > >> >> 3. If I use an ivar prefix that no one else uses (as far as I know), then I >> ca

Application Menu

2011-10-03 Thread koko
I am trying to change the name of the application menu (terminology?). I have subclassed NSApplication and in its awakeFromNIb I setTitle on the IBOutlet NSMenuItem that is connected to this menu. It does not change. Can this be done? If so, where? I have also tried to setTitle in the app dele

Re: Application Menu

2011-10-03 Thread Kyle Sluder
On Mon, Oct 3, 2011 at 4:25 PM, koko wrote: > I am trying to change the name of the application menu (terminology?). I have > subclassed NSApplication and in its awakeFromNIb I setTitle on the IBOutlet > NSMenuItem that is connected to this menu. > > It does not change. Can this be done? If so,

Re: Application Menu

2011-10-03 Thread koko
Thanks Kyle ... I was afraid of that. Do you know why this is the case? -koko On Oct 3, 2011, at 5:37 PM, Kyle Sluder wrote: > On Mon, Oct 3, 2011 at 4:25 PM, koko wrote: >> I am trying to change the name of the application menu (terminology?). I >> have subclassed NSApplication and in its a

Re: Application Menu

2011-10-03 Thread Graham Cox
On 04/10/2011, at 10:46 AM, koko wrote: > Do you know why this is the case? Because it's a crazy notion? Why would you have an app named "foo" that is displayed as "bar"? Consistency is presumably what is being strived for here, in order to keep the poor user from getting confused. That menu

Re: Application Menu

2011-10-03 Thread Jens Alfke
To be pedantic: You _can_ customize the title of the app menu at build time, by changing the CFBundleDisplayName property in the app’s Info.plist. (You can also change this in the strings file for the plist if you want the value to be language-dependent.) This is pretty commonly done for apps th

Re: Application Menu

2011-10-03 Thread koko
I am shamed for not realizing the consistency issue. Where is my scarlet C! Thanks Graham! -koko On Oct 3, 2011, at 5:54 PM, Graham Cox wrote: > > On 04/10/2011, at 10:46 AM, koko wrote: > >> Do you know why this is the case? > > > Because it's a crazy notion? > > Why would you have an a

Years-old mysterious bindings crash

2011-10-03 Thread Seth Willits
I've been receiving reports of this rare but persistent crash over the past few years, and I've never been able to reproduce it or figure out what's causing it. They often look exactly like the stack trace below, but sometimes it's different, happening at a different time. The thing they all ha

how to set path on NSPathControl

2011-10-03 Thread Sandeep Mohan Bhandarkar
Hi All, Can some one let me know if it is possible to set a NSPathControl using a NSString. I tried the follwong. NSString *Node1 = @"Test1"; NSString *Node2 = @"Test2"; [rootSubRootPath setURL:[NSURL URLWithString:[NSString stringWithFormat:@"/%@/%@", Node1, Node2]]]; Here rootSubRootP

Re: how to set path on NSPathControl

2011-10-03 Thread Quincey Morris
On Oct 3, 2011, at 20:20 , Sandeep Mohan Bhandarkar wrote: > Can some one let me know if it is possible to set a NSPathControl using a > NSString. I tried the follwong. > > NSString *Node1 = @"Test1"; > NSString *Node2 = @"Test2"; > > [rootSubRootPath setURL:[NSURL URLWithString:[NSString > s

Re: how to set path on NSPathControl

2011-10-03 Thread Charles Srstka
On Oct 3, 2011, at 10:20 PM, Sandeep Mohan Bhandarkar wrote: > Hi All, > > Can some one let me know if it is possible to set a NSPathControl using a > NSString. I tried the follwong. > > NSString *Node1 = @"Test1"; > NSString *Node2 = @"Test2"; > > [rootSubRootPath setURL:[NSURL URLWithString

Re: how to set path on NSPathControl

2011-10-03 Thread Sandeep Mohan Bhandarkar
Tried doing the same with the value bindings and it seemed to work. On Oct 3, 2011, at 8:41 PM, Quincey Morris wrote: > On Oct 3, 2011, at 20:20 , Sandeep Mohan Bhandarkar wrote: > >> Can some one let me know if it is possible to set a NSPathControl using a >> NSString. I tried the follwong. >

Re: Years-old mysterious bindings crash

2011-10-03 Thread Quincey Morris
On Oct 3, 2011, at 18:29 , Seth Willits wrote: > I've been receiving reports of this rare but persistent crash over the past > few years, and I've never been able to reproduce it or figure out what's > causing it. One thing you could do, if you have an actual crash dump to examine, is to work

Re: Finder Integration

2011-10-03 Thread Ben Staveley-Taylor
Finder icon badging ('badg' resource) is not that much use these days because most file icons are no longer static but are generated by QuickLook on the fly, except in the smallest of views. QuickLook does not honour the 'badg' resource, I've been told. Another reason that a badg resource is no

Re: Retain/Release and Properties clarification

2011-10-03 Thread John Tsombakos
On Mon, Oct 3, 2011 at 2:01 PM, Andreas Mayer wrote: > > Am 03.10.2011 um 16:14 schrieb John Tsombakos: > >> audioPlayer = [self getSoundFile:"soundfile.wav"]; >> ... >> >> in getSoundFile routine: >> AVAudioPlayer *snd; >> ... >> snd = [[[AVAudioPlayer alloc] initWithContentsOfURL:url error:&erro