Re: making the most of a symbolic breakpoint

2013-01-09 Thread Joel Reymont
Off the top of my head: po `$rdi` Works on exceptions, haven't tried with symbolic breakpoints. Above assumes you are using lldb. On Wed, Jan 9, 2013 at 2:08 PM, Matt Neuburg m...@tidbits.com wrote: When I've set a symbolic breakpoint for an Objective-C method and we pause at that

Re: making the most of a symbolic breakpoint

2013-01-09 Thread Joel Reymont
Ah, mea culpa! This then. http://developer.apple.com/library/ios/#technotes/tn2239/_index.html See the listings under Objective-C and the differences under Some Assembly required. -- for hire: mac osx device driver ninja.

Re: making the most of a symbolic breakpoint

2013-01-09 Thread Joel Reymont
Tech Note 2239 refers to 64-bit register details in Listing 10, Objective-C runtime 'secrets'. These details can be found here http://developer.apple.com/library/mac/#technotes/tn2124/_index.html It should be straightforward to translate to ARM and LLDB now.

Re: simulating enter in a text field by pressing a button

2013-01-09 Thread Joel Reymont
2013, at 21:03, Joel Reymont joe...@gmail.com wrote: I have a dialog (sheet) with a single text field and a button. I'm using Cocoa Bindings to validate the value in the text field and set a string field in the File's Owner. This works fine but I would like to trigger the same sequence

Re: simulating enter in a text field by pressing a button

2013-01-09 Thread Joel Reymont
What I'm trying to say is that the root of my Nib is a Window since I use it with NSPanel to display a modal sheet. The window does have a view which has a text field and a button. Do I need to have a subclass of NSWindowController just to load the Nib -and- a NSViewController to manage the text

Re: simulating enter in a text field by pressing a button

2013-01-09 Thread Joel Reymont
I got it to work. The key is to explicitly load the Nib in the constructor of my NSViewController subclass - (id)init { [NSBundle loadNibNamed:kNibName owner:self]; self = [super initWithNibName:kNibName bundle:nil]; ... } Checking the result of commitEditing when the user clicks my

simulating enter in a text field by pressing a button

2013-01-07 Thread Joel Reymont
I have a dialog (sheet) with a single text field and a button. I'm using Cocoa Bindings to validate the value in the text field and set a string field in the File's Owner. This works fine but I would like to trigger the same sequence of events when pressing the button. How do I do this?

using grand central dispatch and c++ for inter-thread communication

2010-04-22 Thread Joel Reymont
Here's my write-up on using GCD with C++ for inter-thread communication: http://wagerlabs.com/grand-central-dispatch-c-and-inter-thread-com I wrote a user land USB driver, put in a framework and made the framework start the driver thread upon initialization. I then proceeded to use Grand

Re: NSRulerView custom labels

2009-02-16 Thread Joel Reymont
Richard, Richard Bannister wrote: Folks I'm working on an app that will be using timestamps in a NSRulerView - in the format 0:01, 0:02, et al. Have you seen this? http://www.noodlesoft.com/blog/2008/10/05/displaying-line-numbers-with-nstextview/ I'm exploring using NSRulerView for

Using NSRulerView with a non-text view

2009-02-16 Thread Joel Reymont
I would like to use NSRulerView to label stock charts. It already provides the hash marks and seems awfully handly, although the labels will need adjustment. Has anyone used NSRulerView with graphic or other non-text views? I would like to reuse and extend rather than build from scratch.

Re: Using NSRulerView with a non-text view

2009-02-16 Thread Joel Reymont
On Feb 16, 2009, at 11:25 PM, Graham Cox wrote: You tell it everything it needs to know when you register the settings - how far apart the marks are and how many submarks that is divided into and so forth. It asks its delegate for everything else. I just wish it asked the delegate for