Table object not selected on launch

2010-01-11 Thread Jenny M
When my application launches, I have a custom BackgroundView that takes the role of first responder. Within the main window, I have a NSScrollView that contains core data objects in an NSArrayController. I want the objects to load in the table on launch, but I don't want any objects to be *selected

prepareSavePanel - save as or save to?

2010-01-11 Thread jeffs87
Hi, Is there a way to tell in prepareSavePanel if the save operation is an NSSaveAsOperation or an NSSaveToOperation? thanks Jeff ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Blurry UILabel text as programmatic subview of UITableViewCell's contentView

2010-01-11 Thread Alex Reynolds
I am adding a UILabel instance as a subview of my custom UITableViewCell instance's contentView property. When I select the cell, the row is highlighted blue, except for the background of the label. The label text is sharp, but the background is white for the bounds of the contentView. When I

Re: Custom sheet question - which variable?

2010-01-11 Thread Scott Ribe
> In what AppDelegate method do I need to run that code? > applicationDidFinishLaunching? init? You don't need to do that before the window is needed; you can do it from the menu item, or from a method of the controller of the window on which the sheet will be shown. -- Scott Ribe scott_r...@kil

Re: Custom sheet question - which variable?

2010-01-11 Thread Jenny M
Thanks guys, I think I am understanding this more now. A few more questions... You can do whichever you like. I tend to wander objects up and down my > various controller and delegate chains as I write code because where I think > I want it, I sometimes don't want it. Ask yourself this, what is t

Re: NSExtraMIData?

2010-01-11 Thread Kyle Sluder
On Mon, Jan 11, 2010 at 8:58 PM, Graham Cox wrote: > I sure am - that's what's such a pain, my app passes with no issues but I get > these occasional reports from the field, but very unrepeatably. That's a shame. I only mentioned it because I have a tendency to forget to run the analyzer, only t

Re: NSExtraMIData?

2010-01-11 Thread Graham Cox
On 12/01/2010, at 3:50 PM, Kyle Sluder wrote: > The static analyzer is very good at what it does. Are you remembering > to Build and Analyze? I sure am - that's what's such a pain, my app passes with no issues but I get these occasional reports from the field, but very unrepeatably. --Graham

Re: What's the right way to make the last (or only) table column fill the width of an NSTableView?

2010-01-11 Thread Kyle Sluder
On Mon, Jan 11, 2010 at 10:58 AM, Charles Jenkins wrote: > The ZIP Inspector program works as advertised, but I'm annoyed by the fact > that the filenames shown in the Table View get truncated due to the width of > their column, which does not resize no matter how big I make the Table View. > (The

Re: NSExtraMIData?

2010-01-11 Thread Kyle Sluder
On Mon, Jan 11, 2010 at 8:13 PM, Graham Cox wrote: > OK, guessed it might be. Thanks *glum* - another MM bug to find... The static analyzer is very good at what it does. Are you remembering to Build and Analyze? --Kyle Sluder ___ Cocoa-dev mailing lis

Re: NSExtraMIData?

2010-01-11 Thread Graham Cox
On 12/01/2010, at 3:10 PM, Greg Parker wrote: > Most likely, you over-released some other object and then an NSExtraMIData > was allocated at the same address. When you later try to use the dead > over-released object, the message is sent to the NSExtraMIData object. OK, guessed it might be.

Re: NSExtraMIData?

2010-01-11 Thread Greg Parker
On Jan 11, 2010, at 7:54 PM, Graham Cox wrote: > Anyone got any idea what NSExtraMIData is? > > I'm getting a "unrecognized selector" error logged on this class, but I've > never heard of it. It's part of NSMenu's internal implementation. Most likely, you over-released some other object and th

Re: NSExtraMIData?

2010-01-11 Thread Michael Davey
I googled and found this, I hope it helps: http://imlocation.wordpress.com/2007/09/13/strange-objects-nscftype-indicate-memory-management-bugs/ On 12 Jan 2010, at 14:54, Graham Cox wrote: > Anyone got any idea what NSExtraMIData is? > > I'm getting a "unrecognized selector" error logged on thi

Re: A password strength checker

2010-01-11 Thread Howard Siegel
If you would, please post your code some place and let us know the URL to it. There is supposed to be an iPhone version coming out, but I suspect that it will be done using MonoDevelop (C#.NET for non-Windows platforms) rather than being written in ObjC/Cocoa. - h On Mon, Jan 11, 2010 at 08:12,

Re: Cocoa-dev Digest, Vol 7, Issue 52

2010-01-11 Thread Paul Archibald
On Jan 11, 2010, at 4:19 PM, cocoa-dev-requ...@lists.apple.com wrote: What does NSLog(@"%@", picker); print out? 0x138cf30>> Does that tell you anything? It looks okay to me. At least its not deadbeef or nil, and the frame makes sense. ___ Co

NSExtraMIData?

2010-01-11 Thread Graham Cox
Anyone got any idea what NSExtraMIData is? I'm getting a "unrecognized selector" error logged on this class, but I've never heard of it. --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator co

Re: What's the right way to make the last (or only) table column fill the width of an NSTableView?

2010-01-11 Thread Graham Cox
On 12/01/2010, at 12:20 PM, Charles Jenkins wrote: > "Resizes with Table" does not help. I knew there'd be no chance of getting > the behavior I want without that, so I never unchecked it. I'm sorry I forgot > to mention that in my original post. For me I find that a column sizing "sequential

Re: Question about garbage collection

2010-01-11 Thread John Engelhart
On Sun, Jan 3, 2010 at 1:40 PM, Bill Bumgarner wrote: > > The stack has to be conservatively scanned because the C ABI makes no > guarantee about stack layout and the compiler is free to put values wherever > it sees fit, Strictly speaking, the "C" ABI does not require that a function use "the

Re:Re: Core Data Document based app need some help

2010-01-11 Thread Pavel V Subach
Quincey Morris wrote: It looks like you should *not* be using NSComboBox for this. A combo box is a kind of text field, not a kind of menu. It looks like you want menus. That implies your entity should have two numeric properties, which represent choices from two fixed menus that list the

Re: iPhone endInterruption delegate method killing OpenAL

2010-01-11 Thread Chunk 1978
thanks for the reply, eric. i've been sorting thru apple's sample code and other snippets online to try and make this work. i've noticed that apple doesn't set the current context to null before destroying it in their sample code for "MusicCube". however, i will trust your insight. also, i just

Re: What's the right way to make the last (or only) table column fill the width of an NSTableView?

2010-01-11 Thread Charles Jenkins
"Resizes with Table" does not help. I knew there'd be no chance of getting the behavior I want without that, so I never unchecked it. I'm sorry I forgot to mention that in my original post. > > On 2010 Jan 11, at 10:58, Charles Jenkins wrote: > > > Anyone know of a combination of IB settings t

Re: if statement causing 32 Byte leak?

2010-01-11 Thread Paul Sanders
Yes, I think I took a step too far there. Paul Sanders. On Jan 11, 2010, at 9:02, Scott Ribe wrote: > It has been my experience that some of the hardest bugs were > stale > references left in autorelease pools. However it has not often > been my > experience that the last release is my actua

Re: how do you set the value of a UIPickerView programatically?

2010-01-11 Thread Dave DeLong
What does NSLog(@"%@", picker); print out? Dave On Jan 11, 2010, at 5:14 PM, Paul Archibald wrote: > I have a couple of pickers in my app, and when they are displayed I want them > to show their current values. I have tried: > > -(IBAction) setThePicker:(id) sender { > [picker selectRow:

how do you set the value of a UIPickerView programatically?

2010-01-11 Thread Paul Archibald
I have a couple of pickers in my app, and when they are displayed I want them to show their current values. I have tried: -(IBAction) setThePicker:(id) sender { [picker selectRow:3 inComponent:0 animated:YES]; } (hooked to a button, as a test) as well as just calling [picker s

Re: iPhone endInterruption delegate method killing OpenAL

2010-01-11 Thread E. Wing
On 1/11/10, Chunk 1978 wrote: > i can't figure out what it wrong with my code (attached .m file). i'm > playing a looping sound with OpenAL, which becomes interrupted by an > alarm. when i quit the alarm, my endInterruption delegate method is > activated, and a new OpenAL session is started but

Re: iPhone interruption with OpenAL?

2010-01-11 Thread E. Wing
The quick answer is no. Assuming iPhone OS 3.0+, you must suspend/disable the OpenAL context by making the current context NULL. And if you have an iPod Touch, you can use the Clock.app's alarm feature to help test interruptions. FYI, I cover iPhone audio and OpenAL in excruciating detail (attempt

Re: iPhone: CGPathMutable updating?

2010-01-11 Thread Eric E. Dolecki
Nevermind - I found out my problem. Sorry for the noise. On Mon, Jan 11, 2010 at 1:30 PM, Eric E. Dolecki wrote: > I am using a CGPathMutable to draw the hand on an analog clock: > > minuteHandPath = CGPathCreateMutable(); > > CGPathMoveToPoint(minuteHandPath, nil, center.x, center.y); > > CGPat

Re: Drawing A Mutable String

2010-01-11 Thread Andy Lee
Bizarre. I love bugs like this that it's easy to prove can't possibly be happening. :) The only desperate, farfetched suggestion I have is that somehow you've accidentally created two instances of your GameView, only one of which is visible, and for some reason when invalidStack is true, the c

Re: Core Data Document based app need some help

2010-01-11 Thread Oftenwrong Soong
On Mon, January 11, 2010 12:11:34 PM, Quincey Morris wrote: > It looks like you should *not* be using NSComboBox for this. A combo box is a > kind of text field, not a kind of menu. It looks like you want menus. Yeah. Try using a pop-up button instead. That's a kind of menu. ___

Re: Question about garbage collection

2010-01-11 Thread Oftenwrong Soong
I believe it will because there will be no pointer to each allocated string after a new one is allocated. Note that it won't be deallocated immediately. It will be deallocated when the collector runs. - Original Message From: Michael Abendroth To: cocoa-dev@lists.apple.com Sent: Sun,

Re: Open new document from within another document.

2010-01-11 Thread Quincey Morris
On Jan 11, 2010, at 12:22, Jeffrey Andrews wrote: > I thought that the fileURLWithPath includes "file://" that I don't want. > Other examples show URLWithString, too. AFAIK, you use 'fileURLWithPath' when you have a path string with no scheme, and URLWithString when you do have a scheme at the

setTailIndent problems

2010-01-11 Thread Fabry, Geza
Hi, I try to set tailIndent for an NSMutableParagraphStyle attribute of an NSMutableAttributedString. The documentation says: "If positive, this is the distance from the leading margin (for example, the left margin in left-to-right text). That is, it's the absolute line width. If 0 or negati

Re: Open new document from within another document.

2010-01-11 Thread Jeffrey Andrews
The document doesn't pop up a new window. The delegate does get called, but doc is nil. But, if I use [[NSWorkspace sharedWorkspace] openFile:path withApplication:@"MyAppName"], it works. I just thought that I shouldn't have to rely on NSWorkspace. I will try your suggestion of using the ne

Re: receiving events

2010-01-11 Thread Oftenwrong Soong
Hi Ariel, I'm afraid it's a bit difficult to understand your question. Are you attempting to insert a full-screen view into the responder chain? Thanks, Soong - Original Message From: Ariel Feinerman To: Cocoa Development Sent: Mon, December 7, 2009 12:17:57 PM Subject: receiving e

Re: Displaying contents of more than one NSManagedObjectContext?

2010-01-11 Thread Oftenwrong Soong
Hi Rick, It is my limited understanding of core data that you can load as many managed object *models* as you want into a managed object context to obtain the union of all those models. You may want to look at the core data command line tutorial, which shows how to write a non-gui console-based

Re: Core Data Document based app need some help

2010-01-11 Thread Quincey Morris
On Jan 10, 2010, at 16:15, Pavel V Subach wrote: > How to create Entity with next content: > > schema: > Center of telecommunication | City > > content: > 1 | 1 > 1 | 2 > 1 | 3 > 2 | 4 > 2 | 5 > 2 | 6 > 2 | 7 > ... | ... > > for use in two NSComboBox in next rules: > > 1) Choose Center of Tele

Re: "Bindings"; Was: whether property in Cocoa class is KVO-compliant?

2010-01-11 Thread Quincey Morris
On Jan 11, 2010, at 10:04, Jerry Krinock wrote: > Well, I guess I'm talking about the default implementation then. I just mean > I'd probably have an easier time learning bindings if they were called maybe > "KVO Plus", and somehow used a class' regular properties on both ends of a > binding,

Re: Hyperlinks in Table Views

2010-01-11 Thread Jerry Krinock
This might help you: http://developer.apple.com/mac/library/releasenotes/cocoa/AppKitOlderNotes.html#NSTableView Note especially the section titled "NSTableView/NSOutlineView - Single click to edit" ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Re: What's the right way to make the last (or only) table column fill the width of an NSTableView?

2010-01-11 Thread Jerry Krinock
On 2010 Jan 11, at 10:58, Charles Jenkins wrote: > Anyone know of a combination of IB settings that will really, truly make the > last (or only) table column really, truly expand to fit the width of the > table view? You must tell the column also. Inspect your Table Column in Interface Builde

What's the right way to make the last (or only) table column fill the width of an NSTableView?

2010-01-11 Thread Charles Jenkins
I'm working on the examples in the (fantastic) Hillegass book. The ZIP Inspector program works as advertised, but I'm annoyed by the fact that the filenames shown in the Table View get truncated due to the width of their column, which does not resize no matter how big I make the Table View. (

Re: Enabling NSZombieEnabled programatically

2010-01-11 Thread Scott Ribe
> This is not a valid initializer. Initializers must be constant expressions. Oops, my C++ is showing ;-) -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

iPhone: CGPathMutable updating?

2010-01-11 Thread Eric E. Dolecki
I am using a CGPathMutable to draw the hand on an analog clock: minuteHandPath = CGPathCreateMutable(); CGPathMoveToPoint(minuteHandPath, nil, center.x, center.y); CGPathAddLineToPoint(minuteHandPath, nil, center.x, center.y - 105); CGPathCloseSubpath(minuteHandPath); minuteHandLayer = [CAShap

Hyperlinks in Table Views

2010-01-11 Thread David Doyle
Hi all; I'm trying to display a list of clickable hyperlinks inside a table view. The current approach I'm taking is to use a table column with a NSTextFieldCell data cell, with a value attribute that is bound to an attributed string value, constructed in a value transformer: - (id)transformed

Core Data Document based app need some help

2010-01-11 Thread Pavel V Subach
How to create Entity with next content: schema: Center of telecommunication | City content: 1 | 1 1 | 2 1 | 3 2 | 4 2 | 5 2 | 6 2 | 7 ... | ... for use in two NSComboBox in next rules: 1) Choose Center of Telecommunication 2) Choose City (restricted list by choosing Center of Telecommunication

Re: Enabling NSZombieEnabled programatically

2010-01-11 Thread Kyle Sluder
On Mon, Jan 11, 2010 at 9:16 AM, Scott Ribe wrote: > static int zombiefoo = EnableZombies(); This is not a valid initializer. Initializers must be constant expressions. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: TableView cells refuse to draw white!

2010-01-11 Thread Gerd Knops
Never mind... Someone had switched the BG color from a very light gray to white... :-o On Jan 11, 2010, at 11:46 AM, Gerd Knops wrote: > I think I am loosing my mind! > > In my custom TableView cells I draw the background like so: > > [[NSColor xxxColor]set]; > NSRe

Re: "Bindings"; Was: whether property in Cocoa class is KVO-compliant?

2010-01-11 Thread mmalc Crawford
On Jan 11, 2010, at 9:01 am, Jerry Krinock wrote: > I wonder why bindings was not as an extension of KVO, instead of as a > separate sideshow. The effect is the same as KVO, > It's not at all. Bindings uses KVO to ensure that "things" are kept synchronised; KVO is a general mechanism that all

Re: "Bindings"; Was: whether property in Cocoa class is KVO-compliant?

2010-01-11 Thread Jerry Krinock
On 2010 Jan 11, at 09:46, Mike Abdullah wrote: >> I wonder why bindings was not as an extension of KVO, instead of as a >> separate sideshow. The effect is the same as KVO, with the addition that a >> designated setter is automatically invoked in the observer when a change is >> observed. >

Re: if statement causing 32 Byte leak?

2010-01-11 Thread Joar Wingfors
...which, again, is why the approach that Instrument takes is such a good one. j o a r On Jan 11, 2010, at 9:02, Scott Ribe wrote: It has been my experience that some of the hardest bugs were stale references left in autorelease pools. However it has not often been my experience that the

TableView cells refuse to draw white!

2010-01-11 Thread Gerd Knops
I think I am loosing my mind! In my custom TableView cells I draw the background like so: [[NSColor xxxColor]set]; NSRectFill(interiorFrame); It works fine for xxx=red, green etc. But for [NSColor whiteColor] the background stays gray (the table views background)

Re: "Bindings"; Was: whether property in Cocoa class is KVO-compliant?

2010-01-11 Thread Mike Abdullah
On 11 Jan 2010, at 17:01, Jerry Krinock wrote: > > On 2010 Jan 11, at 03:47, Quincey Morris wrote: > >> On Jan 10, 2010, at 19:58, Jerry Krinock wrote: >> >>> toObject:segmentedControl >> >> You *didn't* "bind an NSSegmentedControl to its window controller", you >> actually boun

Re: iPhone: diagnose crashes

2010-01-11 Thread Eric E. Dolecki
Ahhh - thank you. Your help is greatly appreciated. On Mon, Jan 11, 2010 at 12:21 PM, Alexander Spohr wrote: > Your App crashes in MainViewController.m line 113. > You send a message to a dead object in there. > >atze > > > Am 11.01.2010 um 14:50 schrieb Eric E. Dolecki: > > > I have an

Re: Differentiate FAT16 and FAT32

2010-01-11 Thread Matthias Arndt
Am 11.01.2010 um 18:36 schrieb Alastair Houghton: > [path cStringUsingEncoding:NSASCIIStringEncoding] is wrong. You want [path > filesystemRepresentation], otherwise you will have problems if there are any > non-ASCII characters in the provided path. "fileSystemRepresentation", but I stand cor

Re: Open new document from within another document.

2010-01-11 Thread Quincey Morris
On Jan 11, 2010, at 05:43, Jeffrey Andrews wrote: > I am stumped. I am trying to open another document from within a document. > My AppController implements the delegate method > > -(BOOL) application:(NSApplication*) sender openFile:(NSString*)path > { > NSLog(@"AppController - applicat

Re: Differentiate FAT16 and FAT32

2010-01-11 Thread Alastair Houghton
On 11 Jan 2010, at 17:22, Matthias Arndt wrote: > if (statfs([path cStringUsingEncoding:NSASCIIStringEncoding], &fsInfo) == 0) [path cStringUsingEncoding:NSASCIIStringEncoding] is wrong. You want [path filesystemRepresentation], otherwise you will have problems if there are any non-ASCII chara

Re: Custom sheet question - which variable?

2010-01-11 Thread Scott Ribe
You may want the [NSBundle loadNibNamed: @"MyCustomSheet" owner: self] call in effect made from within the init method of your NSWindowController subclass. In which case, you may want to use NSWindowController's initWithWindowNibName method. -- Scott Ribe scott_r...@killerbytes.com http://www.kil

Re: Drawing A Mutable String

2010-01-11 Thread Michael Craig
Andy: There's nothing drawing over it. I can move that chunk of code to the end of drawRect: with the same result. Quincy: rightAligned is a paragraph style object that's defined elsewhere in drawRect and used in a few different places. Fritz: All four things you mention are apparently true when

Re: Differentiate FAT16 and FAT32

2010-01-11 Thread Matthias Arndt
Am 11.01.2010 um 17:17 schrieb James Bucanek: > Another suggestion: ask filesystem questions on the filesystem-dev list > (). The people on > this list are filesystem geniuses, but some have publicly admitted that they > can't keep up with

Re: iPhone: diagnose crashes

2010-01-11 Thread Alexander Spohr
Your App crashes in MainViewController.m line 113. You send a message to a dead object in there. atze Am 11.01.2010 um 14:50 schrieb Eric E. Dolecki: > I have an app that I am trying to debug. When I run in Simulator I have no > problems. When I am tethered to my dev machine with a devi

Re: Enabling NSZombieEnabled programatically

2010-01-11 Thread Scott Ribe
Typed too fast, duh, it would obviously have to be: static int zombiefoo = EnableZombies(); int EnableZombies() { NSZombieEnabled = ... return 0; } -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice __

Re: Enabling NSZombieEnabled programatically

2010-01-11 Thread Scott Ribe
> ...but was never able to... So, would this work? static int zombiefoo = EnableZombies(); void EnableZombies() { NSZombieEnabled = ... } That would move it back to before main() is entered, though not necessarily before various Obj-C classes are loaded. -- Scott Ribe scott_r...@killerbytes.

Re: if statement causing 32 Byte leak?

2010-01-11 Thread Scott Ribe
> That has certainly been > my experience at least and Graham's suggestion would trap all > such bugs at the point of last release (which, probably, is the > cause of the bug anyway). It has been my experience that some of the hardest bugs were stale references left in autorelease pools. However i

Re: "Bindings"; Was: whether property in Cocoa class is KVO-compliant?

2010-01-11 Thread Jerry Krinock
On 2010 Jan 11, at 03:47, Quincey Morris wrote: > On Jan 10, 2010, at 19:58, Jerry Krinock wrote: > >> toObject:segmentedControl > > You *didn't* "bind an NSSegmentedControl to its window controller", you > actually bound a window controller['s "foo" binding] to [the > "selected

Re: if statement causing 32 Byte leak?

2010-01-11 Thread Paul Sanders
I think what Graham originally said was true though - the hardest over-release bugs to get to the bottom of are those where a 'stale' reference is left behind in an autorelease pool, only to blow up at some future point. That has certainly been my experience at least and Graham's suggestion wo

Re: if statement causing 32 Byte leak?

2010-01-11 Thread Scott Ribe
> Might be a bit slow. Yes, I would think you'd definitely want to be able to turn it on per-class. Of course none of this will get you a break on the actual error except occasionally when you're lucky and it's the last release (not autorelease) that's wrong--it merely puts the break more or less

Re: ConvertCocoa64: spaces in filename problem

2010-01-11 Thread Sherm Pendley
Completely agree with the problem and your suggested alternative, but this ain't the place to file bug reports. You should file this at: sherm-- On Mon, Jan 11, 2010 at 10:56 AM, A.M. wrote: > On this page: > > http://developer.apple.com/mac/library/documentat

Re: if statement causing 32 Byte leak?

2010-01-11 Thread Paul Sanders
Might be a bit slow. Paul Sanders http://www.alpinesoft.co.uk - Original Message - From: "Scott Ribe" To: "Dave Camp" ; "Cocoa Dev" Sent: Monday, January 11, 2010 4:02 PM Subject: Re: if statement causing 32 Byte leak? > If I was going to ask Apple for help here, I'd ask for a debug

Re: Differentiate FAT16 and FAT32

2010-01-11 Thread James Bucanek
Alastair Houghton wrote (Monday, January 11, 2010 2:49 AM -): On 10 Jan 2010, at 21:05, Matthias Arndt wrote: According to the sources for the FAT filesystem driver (which you can get from ), you can look at f_fssubtype i

Re: A password strength checker

2010-01-11 Thread Jim Turner
Awesome find, Howard. I've needed a password strength algorithm in the past and never could find one. Plus, the strength computed by the Password Assistant is questionable at best. Given a password of '' (20 lowercase 'a'), the assistant scores it about a 20%. Add one more 'a'

Re: if statement causing 32 Byte leak?

2010-01-11 Thread Scott Ribe
> If I was going to ask Apple for help here, I'd ask for a debug API that uses > the Leaks engine to find things that still have pointers to my object at > dealloc time. Good idea. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___

Re: if statement causing 32 Byte leak?

2010-01-11 Thread Dave Camp
On Jan 10, 2010, at 6:51 PM, Scott Ribe wrote: >> Just a quick note: one problem with this is false positives; you don't >> necessarily control all the code that handles the object in question. > > I think perhaps you didn't notice that he said "at -dealloc time". There is > no case in which an a

ConvertCocoa64: spaces in filename problem

2010-01-11 Thread A.M.
On this page: http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/Cocoa64BitGuide/ConvertingExistingApp/ConvertingExistingApp.html#//apple_ref/doc/uid/TP40004247-CH5-SW5 Apple suggests using: /Developer/Extras/64BitConversion/ConvertCocoa64 `find . -name '*.[hm]' | xargs` Howe

[MEET] Columbia, MD CocoaHeads - Tuesday, Jan 12th

2010-01-11 Thread Eric Gorr
The next meeting of the Columbia, MD CocoaHeads group will be held on Tuesday, Jan 12th at Nemetschek North America, Inc. at 7pm. For more details on this meeting, please check out: http://cocoaheads.org/us/ColumbiaMaryland/index.html ___ Cocoa-dev

[MEET] Toronto Cocoaheads / tacow - January 26

2010-01-11 Thread Karl Moskowski
The next meeting of tacow/Toronto CocoaHeads will be held on Tuesday, January 26 at 6:30 PM at Ryerson University. Note that this meeting is two weeks later than our regular date. Also, we'll be meeting in the Ryerson comp. sci. department's new location at Yonge & Dundas. Up-to-date agenda & d

Re: pointer being freed was not allocated when rotating an iPhone

2010-01-11 Thread Gerriet M. Denkmann
On 11 Jan 2010, at 19:24, Jonathan del Strother wrote: > 2010/1/11 Gerriet M. Denkmann : >> When I rotate my iPhone in the Simulator, I get: >> >> ... malloc: *** error for object 0x1091000: pointer being freed was not >> allocated >> *** set a breakpoint in malloc_error_break to debug >> (gdb)

Re: Application defaults and toolbar items

2010-01-11 Thread Graham Cox
On 11/01/2010, at 5:46 AM, Martin Hewitson wrote: > Now, if I issue a new version of the application with a new feature that > comes with a new toolbar button, this button doesn't appear when the new > version is launched. In some way this makes sense, but in another way it > doesn't. > > Is

iPhone: diagnose crashes

2010-01-11 Thread Eric E. Dolecki
I have an app that I am trying to debug. When I run in Simulator I have no problems. When I am tethered to my dev machine with a device I see no problems. When I'm out and about I'll get crashes when I click into a UITextField in a view I flip to I'll get the crashes (sometimes) Using Organizer I'

Open new document from within another document.

2010-01-11 Thread Jeffrey Andrews
I am stumped. I am trying to open another document from within a document. My AppController implements the delegate method -(BOOL) application:(NSApplication*) sender openFile:(NSString*)path { NSLog(@"AppController - application:openFile - %@", path); NSDocumentController* dc = [NSD

iPhone endInterruption delegate method killing OpenAL

2010-01-11 Thread Chunk 1978
i can't figure out what it wrong with my code (attached .m file). i'm playing a looping sound with OpenAL, which becomes interrupted by an alarm. when i quit the alarm, my endInterruption delegate method is activated, and a new OpenAL session is started but i can no longer play sounds. i've also

Re: Custom sheet question - which variable?

2010-01-11 Thread Roland King
On 11-Jan-2010, at 4:53 PM, Jenny M wrote: > Oooh... okay, that helps... I haven't loaded yet, so I'm not sure what to put > in it. In the MyObject XIB file, I manually set File's Owner to be the custom > NSWindowController subclass, not AppDelegate. But, I'm trying to open the > sheet from th

Re: pointer being freed was not allocated when rotating an iPhone

2010-01-11 Thread Jonathan del Strother
2010/1/11 Gerriet M. Denkmann : > When I rotate my iPhone in the Simulator, I get: > > ... malloc: *** error for object 0x1091000: pointer being freed was not > allocated > *** set a breakpoint in malloc_error_break to debug > (gdb) bt > #0  0x980d2072 in malloc_error_break () > #1  0x97fe1303 in

Re: How to know whether property in Cocoa class is KVO-compliant?

2010-01-11 Thread Quincey Morris
On Jan 10, 2010, at 19:58, Jerry Krinock wrote: > After studying some about bindings during the last week, I decided that, just > for fun, I would bind an NSSegmentedControl to its window controller using a > binding instead of target/action. I thought that selectedSegment might be a > KVO-com

pointer being freed was not allocated when rotating an iPhone

2010-01-11 Thread Gerriet M. Denkmann
When I rotate my iPhone in the Simulator, I get: ... malloc: *** error for object 0x1091000: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug (gdb) bt #0 0x980d2072 in malloc_error_break () #1 0x97fe1303 in free () #2 0x0015ce49 in dataReleaseInfo () #3

[MEET] Amsterdam CocoaHeads this Wednesday (Jan 13th) 7-9PM

2010-01-11 Thread Cathy Shive
Hello Amsterdam CocoaHeads, There will be a meeting this Wednesday, January 13th. More info and a map to the Sofa office can be found on the meeting page. http://groups.google.com/group/cocoaheads-amsterdam/web/next-meeting---wednesday-jan-13?hl=en See you then! Cathy

Re: Differentiate FAT16 and FAT32

2010-01-11 Thread Alastair Houghton
On 10 Jan 2010, at 21:05, Matthias Arndt wrote: >> According to the sources for the FAT filesystem driver (which you can get >> from ), you can look at f_fssubtype in the >> statfs structure, which you can retrieve using statfs() or similar. See man >> 2 statfs. >>

Re: Custom sheet question - which variable?

2010-01-11 Thread Jenny M
Oooh... okay, that helps... I haven't loaded yet, so I'm not sure what to put in it. In the MyObject XIB file, I manually set File's Owner to be the custom NSWindowController subclass, not AppDelegate. But, I'm trying to open the sheet from the AppDelegate class. Is that possible? It's possible I

Re: How to know whether property in Cocoa class is KVO-compliant?

2010-01-11 Thread Scott Anguish
On Jan 10, 2010, at 11:18 PM, Dave Fernandes wrote: > Look for "Cocoa Bindings Guide" in the docs. It would be nice if it were > cross-referenced in every class description. Please file a bug about that. Class methods that are KVO compatible are stated as such in the reference. They aren’t pe

Re: Custom sheet question - which variable?

2010-01-11 Thread Roland King
That's what I can't get to work, that's where I'm still confused. This piece of code here: - if (!myCustomSheet) [NSBundle loadNibNamed: @"MyCustomSheet" owner: self]; [NSApp beginSheet: myCustomSheet modalForWindow: window modalDelegate: self didEn

Re: Custom sheet question - which variable?

2010-01-11 Thread Jenny M
> Learning your way around the documentation takes awhile, but do it whenever > you can. In your Xcode documentation window, in the search field at the top > right, type "Sheet Programming Topics". You'll get a wonderful document > which will explain many things you can't figure out by following