Re: Make checkbox in table view uneditable

2010-09-15 Thread jonat...@mugginsoft.com
On 15 Sep 2010, at 06:09, Shane Stanley wrote: > On 15/9/10 12:29 PM, "Keary Suska" wrote: > >> Checkboxes aren't edit controls, they are buttons, and to my knowledge don't >> even have an "editable" property (even though the table column has such a >> binding). To prevent changing a button stat

Apple Sample Code GLES2Sample problems

2010-09-15 Thread Gerriet M. Denkmann
1. When I build the Apple Sample Code GLES2Sample (for iOS 4.1) in Xcode 3.2.4 for the Device with "Run Static Analyzer" checked the analyser tells me about destroyShaders() in Shaders.m that "the value stored to vertShader is never read". The Apple code is: /* delete shader resources */ void

Re: Make checkbox in table view uneditable

2010-09-15 Thread Michael Watson
On 15 Sep, 2010, at 02:11, jonat...@mugginsoft.com wrote: > On 15 Sep 2010, at 06:09, Shane Stanley wrote: > >> On 15/9/10 12:29 PM, "Keary Suska" wrote: >> >>> Checkboxes aren't edit controls, they are buttons, and to my knowledge don't >>> even have an "editable" property (even though the tab

Re: Make checkbox in table view uneditable

2010-09-15 Thread Stephane Sudre
On Wed, Sep 15, 2010 at 4:29 AM, Keary Suska wrote: > > On Sep 14, 2010, at 5:59 PM, Shane Stanley wrote: > >> I have a table view using Cocoa bindings, and all columns have editable >> turned off in the Attributes panel. However one column, which contains a >> checkbox cell, steadfastly remains e

Round slider size

2010-09-15 Thread Vincent Habchi
Hi there, can someone confirm me there is no way to increase the size of a round NSSlider beyond what is provided by the "regular" choice? Thanks a lot, Vincent___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests o

What does the column Z_OPT do in Core Data sqlite table?

2010-09-15 Thread Ben
What part does the column Z_OPT play in Core Data sqlite table? I can't seem to find much reference to it on the net. Thanks.___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Re: Make checkbox in table view uneditable

2010-09-15 Thread Shane Stanley
On 15/9/10 7:11 PM, "jonat...@mugginsoft.com" wrote: >> Thanks. I guess it boils down to the fact that a checkbox is a bad choice >> for just showing a binary state in a table. > Checkbox sounds fine to me for this purpose. > > What about the NSTableColumn enabled binding? Yes, that works. It j

Core Data : endEntityMapping:manager:error: Sent to different *instance*

2010-09-15 Thread Jerry Krinock
In NSEntityMigrationPolicy Class Reference, I read: beginEntityMapping:manager:error: Invoked by the migration manager at the start of a given entity mapping. endEntityMapping:manager:error: Invoked by the migration manager at the end of a given entity mapping. Simple enough. However, I find th

[Job] Develop at Skype

2010-09-15 Thread Janno Teelem
Hi everyone, Once again we are expanding our Mac team at Skype and looking for skilled Cocoa developers. Please see the detailed description below: The Brief: Skype is software that enables the world's conversations. Millions of individuals and businesses use Skype to make free video and voice c

NSManagedObjectContextDidSaveNotification across MOCs on two threads

2010-09-15 Thread Roland King
I have an indexing process which runs on a background thread and indexes into a CoreData database. I experienced some odd crashes until I properly read the documentation and understood that sharing an NSManagedObjectContext across threads was a bad idea, and I've fixed the code so that the index

Re: Make checkbox in table view uneditable

2010-09-15 Thread Sean McBride
On Wed, 15 Sep 2010 02:45:27 -0700, Michael Watson said: >If he means that the checkbox would never be toggleable under any >circumstances, and that it's purely to *indicate* state and not >*control* state, that's the wrong use for a checkbox button. A custom >indicator that doesn't look like it c

Re: Garbage collection 32 & 64-bit

2010-09-15 Thread Sean McBride
On Tue, 14 Sep 2010 15:34:41 +0100, Jonathan Guy said: >I was under the impression that if you compile GC in supported mode it >was capable of loading code with or without GC? Not 'loading' but 'being loaded by'. If you build a lib as 'supported', it can be linked to by an app that is GC or not.

CAScrollLayer rotation through -setAffineTransform

2010-09-15 Thread Vincent Habchi
Hi everybody, I'm trying to rotate a drawing made up of multiples contiguous CALayers, each one sublayer of a CAScrollLayer superlayer. If I set up an affine transform in the scroll layer, which seems the only practical way to do a global rotation of all sublayers, I get very strange results: t

Re: Make checkbox in table view uneditable

2010-09-15 Thread Kyle Sluder
On Sep 15, 2010, at 2:45 AM, Michael Watson wrote: > > If he means that the checkbox would never be toggleable under any > circumstances, and that it's purely to *indicate* state and not *control* > state, that's the wrong use for a checkbox button. A custom indicator that > doesn't look like

Re: NSImageViews, Block Animation and Frame by Frame Image Swapping

2010-09-15 Thread David Duncan
On Sep 14, 2010, at 9:42 PM, James Miller wrote: > With Apple recommending block-based animation of UIImageViews, I'm not quite > grasping how to take older frame-by-frame animation code like this: > > NSArray *playerImagesRight = [NSArray arrayWithObjects: [UIImage > imageNamed:@"p1.png"], [UI

Re: NSManagedObjectContextDidSaveNotification across MOCs on two threads

2010-09-15 Thread Jerry Krinock
On 2010 Sep 15, at 07:02, Roland King wrote: > Checking the documentation for NSNotificationCenter however I see that the > notifications are processed in the thread in which they were sent, that of > course will be my indexing thread and that's exactly what I was trying to > avoid, updating c

Re: Apple Sample Code GLES2Sample problems

2010-09-15 Thread David Duncan
On Sep 15, 2010, at 2:11 AM, Gerriet M. Denkmann wrote: > 1. When I build the Apple Sample Code GLES2Sample (for iOS 4.1) in Xcode > 3.2.4 for the Device with "Run Static Analyzer" checked the analyser tells > me about destroyShaders() in Shaders.m that "the value stored to vertShader > is nev

Re: Make checkbox in table view uneditable

2010-09-15 Thread Ken Ferry
On Sep 15, 2010, at 8:36 AM, Kyle Sluder wrote: > On Sep 15, 2010, at 2:45 AM, Michael Watson wrote: > >> >> If he means that the checkbox would never be toggleable under any >> circumstances, and that it's purely to *indicate* state and not *control* >> state, that's the wrong use for a che

NSOutlineView Dazed and Confused for Drag and Drop

2010-09-15 Thread koko
I do this in awakeFromNib (self is subclass of NSOutlineView); [self registerForDraggedTypes:[NSArray arrayWithObjects:NSDragPboard,nil]]; I implement in the data source: - (BOOL)outlineView:(NSOutlineView *)outlineView writeItems:(NSArray *)items toPasteboard:(NSPasteboard *)pboard { Fi

Re: NSOutlineView Dazed and Confused for Drag and Drop

2010-09-15 Thread Nick Zitzmann
On Sep 15, 2010, at 10:35 AM, k...@highrolls.net wrote: > items is an array of pointers to my outline view items ... how do I put them > on the pboard? If they're property list items, you can put them directly onto the pasteboard. If they're not, then you should archive them. Implement NSCodin

Re: NSOutlineView Dazed and Confused for Drag and Drop

2010-09-15 Thread Dave DeLong
I wrote a simple project to show basic drag-and-drop in an NSOutlineView, available here: http://davedelong.com/downloads HTH, Dave On Sep 15, 2010, at 10:35 AM, k...@highrolls.net wrote: > I do this in awakeFromNib (self is subclass of NSOutlineView); > > [self registerForDraggedTypes:[NSAr

How to: Bookmark bar like Safari?

2010-09-15 Thread Brad Stone
I've been spending some time searching and thinking about how I can make a bookmark bar like in Safari or Firefox. It has some of the characteristics of a toolbar especially when the window is small it puts the remaining toolbar items in a drop-down menu but it also has some of the properties o

Re: NSOutlineView Dazed and Confused for Drag and Drop

2010-09-15 Thread koko
Word up to Nick and Dave ... All my issues were because in writeItems:toPasteboard I wasn't doing anything ... I was just trying to stub in code to get the process. Ergo, upon doing [pboard declareTypes:[NSArray arrayWithObject:@"HTREEITEM"] owner:self]; [pboard setData:[NSData d

Re: NSImageViews, Block Animation and Frame by Frame Image Swapping

2010-09-15 Thread James Miller
Great. That helps. So can you point me to a technical note with an overview and/or examples of the new block based animations? On Sep 15, 2010, at 9:56 AM, David Duncan wrote: > On Sep 14, 2010, at 9:42 PM, James Miller wrote: > >> With Apple recommending block-based animation of UIImageViews,

Re: NSOutlineView Drag and Drop

2010-09-15 Thread John C. Randolph
On Sep 14, 2010, at 7:36 PM, k...@highrolls.net wrote: > what do i need to implement so I can drag item within an NSOutline View? http://developer.apple.com/library/mac/#samplecode/DragNDropOutlineView/Introduction/Intro.html -jcr ___ Cocoa-dev mail

Re: NSOutlineView Drag and Drop

2010-09-15 Thread John C. Randolph
On Sep 14, 2010, at 7:36 PM, k...@highrolls.net wrote: > what do i need to implement so I can drag item within an NSOutline View? http://developer.apple.com/library/mac/#samplecode/DragNDropOutlineView/Introduction/Intro.html -jcr ___ Cocoa-dev mail

Re: NSImageViews, Block Animation and Frame by Frame Image Swapping

2010-09-15 Thread David Duncan
Probably a combination of the docs and the WWDC session on UIKit Animations (can't recall the session number off hand). On Sep 15, 2010, at 11:38 AM, James Miller wrote: > Great. That helps. So can you point me to a technical note with an overview > and/or examples of the new block based animat

CGContextSelectFont spinlock

2010-09-15 Thread Stevo Brock
I'm trying to add some custom font support to an iPad app and I keep running into a spinlock from CGContextSelectFont. Happens on SDK 4.0 Simulator and Device running 3.2.2. I've narrowed down the code to: CGContextRefcontext = CGBitmapContextCreate(&data, 1, 1, 8, 4, CGCo

Re: CGContextSelectFont spinlock

2010-09-15 Thread Stevo Brock
Apparently the "font system" was not initialized before this call. Putting a "[UIFont familyNames]" somewhere previous causes things to roll just fine. I should mention that this is an OpenGL based app with minimal other system UI. -Stevo Brock Head of Development Monkey Tools, LLC www.monke

Re: CGContextSelectFont spinlock

2010-09-15 Thread Vince DeMarco
On Sep 15, 2010, at 4:11 PM, Stevo Brock wrote: > Apparently the "font system" was not initialized before this call. Putting a > "[UIFont familyNames]" somewhere previous causes things to roll just fine. > > I should mention that this is an OpenGL based app with minimal other system > UI. >

Re: Programmatic Cocoa (Interface Builder accessibility)

2010-09-15 Thread Erik Buck
http://www.informit.com/articles/article.aspx?p=1211756&seqNum=5 http://lapcatsoftware.com/blog/?s=without+a+nib http://lapcatsoftware.com/blog/2007/05/16/working-without-a-nib-part-1/ http://lapcatsoftware.com/blog/2007/07/10/working-without-a-nib-part-5-open-recent-menu/ http://forums.macrumors.c

Re: CGContextSelectFont spinlock

2010-09-15 Thread Stevo Brock
Hi Vince, The details of the parameters to the function aren't important. The specific example I gave has been reduced down from some other code. In the end I'm not using Comic Sans, but it will come from an NSString. The point is that calling CGContextSelectFont() before doing some other un

Re: CGContextSelectFont spinlock

2010-09-15 Thread Aki Inoue
Since I didn't see the actual backtrace, I cannot comment on what could be causing a spin lock deadlock. One glaring point I'm concerned with this example is that the font name being passed to CGContextSelectFont is incorrect. All of our font APIs, both on Mac OS X and iOS, are expecting the po

Re: CGContextSelectFont spinlock

2010-09-15 Thread Stevo Brock
Hi Aki, Thanks for your reply. Unfortunately changing the font name to the Postscript name does not change the situation. And also unfortunately, when I click Pause in the Debugger, the stack trace I gave is all that is shown. If there is a way to get a more complete stack trace, please let

Re: CGContextSelectFont spinlock

2010-09-15 Thread Wim Lewis
On Sep 15, 2010, at 5:22 PM, Stevo Brock wrote: > And also unfortunately, when I click Pause in the Debugger, the stack trace I > gave is all that is shown. If there is a way to get a more complete stack > trace, please let me know. Is there anything releted-looking going on in another thread?

Re: CGContextSelectFont spinlock

2010-09-15 Thread Stevo Brock
Nothing related at all going on. -Stevo On Sep 15, 2010, at 5:30 PM, Wim Lewis wrote: > > On Sep 15, 2010, at 5:22 PM, Stevo Brock wrote: >> And also unfortunately, when I click Pause in the Debugger, the stack trace >> I gave is all that is shown. If there is a way to get a more complete st

Re: CGContextSelectFont spinlock

2010-09-15 Thread Kyle Sluder
On Wed, Sep 15, 2010 at 5:53 PM, Stevo Brock wrote: > Nothing related at all going on. It still might be useful to get a backtrace across all threads ("thread apply all bt"). --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: CGContextSelectFont spinlock

2010-09-15 Thread Stevo Brock
Here goes: Thread 15 (process 98336): #0 0x95a46086 in select$DARWIN_EXTSN () #1 0x02e968ce in __CFSocketManager () #2 0x95a5481d in _pthread_start () #3 0x95a546a2 in thread_start () Thread 13 (process 98336): #0 0x95a270fa in mach_msg_trap () #1 0x95a27867 in mach_msg () #2 0x02e66052 in

Very Simple Demo: Modal Dialog causes later Modal Session to Crash

2010-09-15 Thread Jerry Krinock
Last week I found that an app would crash if I displayed a modal dialog in -applicationWillFinishLaunching (note: *Will*), *and* *then* ran a modal session on a window in -applicationDidFinishLaunching: (note: *Did*). I've now reproduced it in a very simple demo, shown below. Why does this cras

Re: Very Simple Demo: Modal Dialog causes later Modal Session to Crash

2010-09-15 Thread Kyle Sluder
On Wed, Sep 15, 2010 at 6:07 PM, Jerry Krinock wrote: > - (void)applicationWillFinishLaunching:(NSNotification*)aNotification { >    NSRunAlertPanel(@"Hello", >                    @"A crash is coming soon.", >                    @"OK", >                    nil, >                    nil) ; > } The

keyDown:theEvent

2010-09-15 Thread koko
I want a key down in a view to be handled by keyDown:theEvent in a different view. How is this accomplished? -koko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact t

Re: Very Simple Demo: Modal Dialog causes later Modal Session to Crash

2010-09-15 Thread Jerry Krinock
On 2010 Sep 15, at 18:58, Kyle Sluder wrote: > There's no runloop running yet when -applicationWillFinishLaunching: > is called… Thank you, Kyle. Good explanation. > Among other things, AppKit's automatically-installed autorelease pool hasn't > been installed yet, > Then NSRunAlertPanel is goi

Re: keyDown:theEvent

2010-09-15 Thread Erik Buck
http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/CocoaFundamentals/Introduction/Introduction.html See NSResponder or, in UIKit, UIResponder http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/EventOverview/EventHandlingBasics/EventHandlingBasics.html%23//a

Re: Very Simple Demo: Modal Dialog causes later Modal Session to Crash

2010-09-15 Thread Kyle Sluder
On Wed, Sep 15, 2010 at 7:11 PM, Jerry Krinock wrote: > Anything that I want to happen before a document opens, in case the app is > launched by doubleclicking a document. I think the right pattern to use here would be to set a flag in -applicationDidFinishLaunching: or some later point. Until t

Re: Very Simple Demo: Modal Dialog causes later Modal Session to Crash

2010-09-15 Thread Lee Ann Rucker
On Sep 15, 2010, at 7:30 PM, Kyle Sluder wrote: > On Wed, Sep 15, 2010 at 7:11 PM, Jerry Krinock wrote: >> Anything that I want to happen before a document opens, in case the app is >> launched by doubleclicking a document. > > I think the right pattern to use here would be to set a flag in >

Scripting Bridge Strange Pauses

2010-09-15 Thread John Nairn
I have been having problems calling my Cocoa app with Python scripts through the Scripting Bridge. To test further, I wrote the following Cocoa code to use the Scripting Bridge. For a large file (over 7000 elements in the SBElementArray recs variable) it runs smoothly until 77% completion a

Re: Scripting Bridge Strange Pauses

2010-09-15 Thread Dave Keck
Have you profiled the thread that's stopped/paused? What does its stack trace look like? Have you verified that the problem isn't that 'GEDitCOMII' isn't responding? Also, if you're not using GC, consider profiling your loop with and without each iteration allocating/releasing an autorelease pool