redo: action not in First Responder

2013-07-02 Thread Steve Mills
In our MainMenu.xib, we previously had Undo and Redo hooked up to our own actions, but now want to use the standard undo: and redo: actions. I'm able to choose undo:, but redo: does not appear in the list of known actions in the First Responder. Any ideas? -- Steve Mills office: 952-818-3871

iOS OpenGL ES woes

2013-07-02 Thread Vincent Habchi
Hi folks, I am trying to develop a demo application (DEM viewer) on iOS for educational purposes. I am fairly fluent with OpenGL but this my first try at an iOS app (I usually do OS X development). My problem is that albeit I seem to have abided by all terms of what’s described in the ‘Drawing

Re: iOS OpenGL ES woes

2013-07-02 Thread vincent habchi
Uh, I just realized I had overlooked the call to EAGLContext presentRenderbuffer. It should work better when I add it. Sorry for the noise, but this is a bit confusing at start! Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: redo: action not in First Responder

2013-07-02 Thread Steve Mills
On Jul 2, 2013, at 10:40:52, Keary Suska aksu...@frequentflyerservices.com wrote: On Jul 2, 2013, at 9:16 AM, Steve Mills wrote: In our MainMenu.xib, we previously had Undo and Redo hooked up to our own actions, but now want to use the standard undo: and redo: actions. I'm able to choose

Why are these layout constraints being ignored?

2013-07-02 Thread Rob Nikander
Hi, I don't think I can attach images here, so I'll link to a stackoverflow question with images of the layout. http://stackoverflow.com/questions/17288279/why-is-this-nsoutlineview-ignoring-layout-constraints I create 4 constraints with the desire to pin the NSOutlineView to the edges of it's

Re: NSSplitView similar to Xcode's editor/debug area split view

2013-07-02 Thread Miron Iancu
Hi. 1. Use Split view's setPosition:ofDividerAtIndex. Use delegate to control the constraints. 2. Using above. If you need custom easing of movement it's a bit more complicated. Regards, M Sent from my iPhone On 27.06.2013, at 03:30, Chuck Soper chu...@veladg.com wrote: I'm trying to

Re: Moving a textField from under keyboard

2013-07-02 Thread Esteban Torres
I wouldn't do the didBeginEditing approach; in case the user for whatever reason is using a Bluetooth keyboard, this will launch the scroll up method when there's not visible keyboard and will make the app look weird. Although I know its a farfetched scenario its still possible. What I usually

NSOpenPanel not properly validating/updating with respect to allowedFileTypes

2013-07-02 Thread Matthew LeRoy
Hi, I'm looking for some help troubleshooting some behavior with NSOpenPanel, where it doesn't seem to be properly validating and updating the user interface with respect to changes I'm making to allowedFileTypes. This is in a Document-based app using the 10.7 SDK, running on 10.8.3. I've

Re: Cocoa-dev Digest, Vol 10, Issue 403

2013-07-02 Thread Pamela Grandt
I will be out of the office Tues. July 2. ___ 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

Re: Why are these layout constraints being ignored?

2013-07-02 Thread Kyle Sluder
On Jun 25, 2013, at 6:10 AM, Rob Nikander rob.nikan...@gmail.com wrote: I create 4 constraints with the desire to pin the NSOutlineView to the edges of it's superview (the NSWindow's contentView). It works, until I expand/collapse items in the outline view. Then the constraints are ignored

Re: redo: action not in First Responder

2013-07-02 Thread Jerry Krinock
On 2013 Jul 02, at 09:10, Steve Mills smi...@makemusic.com wrote: I finally got it to work by … I don't recall which Apple document explains this, but the Undo and Redo menu items in a Cocoa app are internally connected to some special magic. They don't work like normal menu items.

Re: redo: action not in First Responder

2013-07-02 Thread Quincey Morris
On Jul 2, 2013, at 09:10 , Steve Mills smi...@makemusic.com wrote: That seems like a total hack when there should be an obvious button or something in First Responder's action list that allows the user to easily add a new action. There is a button, but it's obvious only after you know where

Re: redo: action not in First Responder

2013-07-02 Thread Kyle Sluder
On Tue, Jul 2, 2013, at 10:01 AM, Jerry Krinock wrote: On 2013 Jul 02, at 09:10, Steve Mills smi...@makemusic.com wrote: I finally got it to work by … I don't recall which Apple document explains this, but the Undo and Redo menu items in a Cocoa app are internally connected to some

Re: redo: action not in First Responder

2013-07-02 Thread Steve Mills
On Jul 2, 2013, at 12:27:30, Kyle Sluder k...@ksluder.com wrote: On Tue, Jul 2, 2013, at 10:01 AM, Jerry Krinock wrote: On 2013 Jul 02, at 09:10, Steve Mills smi...@makemusic.com wrote: I finally got it to work by … I don't recall which Apple document explains this, but the Undo and

Re: redo: action not in First Responder

2013-07-02 Thread Steve Mills
On Jul 2, 2013, at 12:10:22, Quincey Morris quinceymor...@rivergatesoftware.com wrote: There is a button, but it's obvious only after you know where it is. Select the First Responder item in the list of XIB components on the left of the editing pane. Display the Attributes inspector in the

Re: redo: action not in First Responder

2013-07-02 Thread Andy Lee
On Jul 2, 2013, at 1:53 PM, Steve Mills smi...@makemusic.com wrote: On Jul 2, 2013, at 12:10:22, Quincey Morris quinceymor...@rivergatesoftware.com wrote: There is a button, but it's obvious only after you know where it is. Select the First Responder item in the list of XIB components on

Re: iOS OpenGL ES woes

2013-07-02 Thread Vincent Habchi
On 2 juil. 2013, at 17:54, Vincent Habchi vi...@macports.org wrote: Uh, I just realized I had overlooked the call to EAGLContext presentRenderbuffer. It should work better when I add it. It doesn’t work even with that call added. I don’t really grasp when the CAEAGLLayer gets somehow hooked

Re: iOS OpenGL ES woes

2013-07-02 Thread David Duncan
Honestly my first question would be why not use GLKit (which the Xcode OpenGL ES template should be using by default) instead? It pretty much sets up all the expected bits for you. On Jul 2, 2013, at 12:46 PM, Vincent Habchi vi...@macports.org wrote: On 2 juil. 2013, at 17:54, Vincent Habchi

Re: iOS OpenGL ES woes

2013-07-02 Thread Vincent Habchi
Hi David, I made it work eventually. I just figured out both the frame buffer and the render buffer must be bound before drawing. Now I have a fine blue screen, so I guess I can go ahead after a good sleep. :) Honestly my first question would be why not use GLKit (which the Xcode OpenGL ES

Re: iOS OpenGL ES woes

2013-07-02 Thread David Rowland
I found it helpful to start with a working sample code app. GLSprite was my mentor. David On Jul 2, 2013, at 12:46 PM, Vincent Habchi vi...@macports.org wrote: On 2 juil. 2013, at 17:54, Vincent Habchi vi...@macports.org wrote: Uh, I just realized I had overlooked the call to EAGLContext

Re: iOS OpenGL ES woes

2013-07-02 Thread David Duncan
On Jul 2, 2013, at 1:15 PM, Vincent Habchi vi...@macports.org wrote: Just a further question: on a CAEAGLLayer backed view, [view setNeedDisplay] does nothing, doesn’t it? Correct. You'll get a log along the lines of -display does nothing in the console. -- David Duncan

Re: NSOpenPanel not properly validating/updating with respect to allowedFileTypes

2013-07-02 Thread Graham Cox
On 02/07/2013, at 4:54 AM, Matthew LeRoy mle...@minitab.com wrote: Hi, I'm looking for some help troubleshooting some behavior with NSOpenPanel, where it doesn't seem to be properly validating and updating the user interface with respect to changes I'm making to allowedFileTypes. This is

Re: redo: action not in First Responder

2013-07-02 Thread Jerry Krinock
On 2013 Jul 02, at 10:47, Steve Mills smi...@makemusic.com wrote: Perhaps Jerry is thinking of… The document I was thinking of is … OS X doc set Data Management Undo Architecture Using Undo in AppKit-Based Applications Undo and the Responder Chain Usually it just