Re: First Responder

2011-02-25 Thread koko
Good lesson. At least I know I am not twisting things around the axel. (as in my earliest Cocoa dev attempts, sacre bleu!) Thanks ! -koko On Feb 26, 2011, at 12:25 AM, Kyle Sluder wrote: > On Fri, Feb 25, 2011 at 11:19 PM, koko wrote: >> Penchant is a great word. Did you know that the avera

Re: NSWindowController

2011-02-25 Thread koko
Apparently something else is going on ... 1 m_designViewerController = [[[NSWindowController alloc] initWithWindowNibName:@"DesignViewer"] retain]; 2 [m_designViewerController showWindow:self]; 3 NSWindow *window = [m_designViewerController window]; 4 [window setDelegate:s

Re: First Responder

2011-02-25 Thread Kyle Sluder
On Fri, Feb 25, 2011 at 11:19 PM, koko wrote: > Penchant is a great word. Did you know that the average vocabulary is less > that 200 words? And I be penchant is not in that set. > > I guess I should rethink my design although I got around things by getting a > pointer the Menu Item and then set

Re: First Responder

2011-02-25 Thread koko
Penchant is a great word. Did you know that the average vocabulary is less that 200 words? And I be penchant is not in that set. I guess I should rethink my design although I got around things by getting a pointer the Menu Item and then setting its target to be my object. I just thought this

Re: NSWindowController

2011-02-25 Thread Louis Demers
I recently ot bit by this. it seems that the window will only be allocated when you call showWindow. Just reorder you sequence. On 2011-02-26, at 01:58 , koko wrote: > I have a xib in which is defined a NSPanel > > In code I do > > m_designViewerController = [[[NSWindowController alloc]

Re: First Responder

2011-02-25 Thread Kyle Sluder
On Fri, Feb 25, 2011 at 10:18 PM, koko wrote: > Really!  So just do > >  [window makeFirstResponder:object]: > > Wow. too much work. > > [object makeFirstResponder} NO! You have this penchant for not reading documentation. http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Eve

NSWindowController

2011-02-25 Thread koko
I have a xib in which is defined a NSPanel In code I do m_designViewerController = [[[NSWindowController alloc] initWithWindowNibName:@"DesignViewer"] retain]; NSWindow *window = [m_designViewerController window]; [window setDelegate:self]; [m_designViewerControll

Re: First Responder

2011-02-25 Thread koko
Really! So just do [window makeFirstResponder:object]: Wow. too much work. [object makeFirstResponder} On Feb 25, 2011, at 11:11 PM, Graham Cox wrote: > > On 26/02/2011, at 5:05 PM, koko wrote: > >> The object is a subclass of NSResponder with overridden >> acceptsFirstResponder to return

Re: First Responder

2011-02-25 Thread Graham Cox
On 26/02/2011, at 5:05 PM, koko wrote: > The object is a subclass of NSResponder with overridden acceptsFirstResponder > to return yes. That still doesn't make it part of the responder CHAIN. You have to put it in the chain. --Graham ___ Cocoa-d

Re: First Responder

2011-02-25 Thread koko
The object is a subclass of NSResponder with overridden acceptsFirstResponder to return yes. -koko On Feb 25, 2011, at 10:59 PM, Kyle Sluder wrote: > On Feb 25, 2011, at 9:31 PM, koko wrote: > >> I connect a menu item to an action in first responder. The action is defined >> in a .h and .m

Re: First Responder

2011-02-25 Thread Graham Cox
On 26/02/2011, at 4:31 PM, koko wrote: > I connect a menu item to an action in first responder. The action is defined > in a .h and .m in the project > > In applicationDidFinishLaunching I alloc, init and retain an object that > contains the action connected to the menu item in first responder

Re: First Responder

2011-02-25 Thread Kyle Sluder
On Feb 25, 2011, at 9:31 PM, koko wrote: > I connect a menu item to an action in first responder. The action is defined > in a .h and .m in the project > > In applicationDidFinishLaunching I alloc, init and retain an object that > contains the action connected to the menu item in first respond

First Responder

2011-02-25 Thread koko
I connect a menu item to an action in first responder. The action is defined in a .h and .m in the project In applicationDidFinishLaunching I alloc, init and retain an object that contains the action connected to the menu item in first responder. At run time the menu item is not enabled. I don

UIWebView: Scale factor

2011-02-25 Thread Phillip Mills
I'm loading files into a UIWebView on an iPad and need to be able to scroll them programatically to positions in the displayed files. Many of these files are PDF, but generally it could be any of the types supported by loadRequest. I'm able to do what I want using JavaScript if I set up my UIW

NSProgressIndicator tintcolor

2011-02-25 Thread Gustavo Pizano
Hello all. Im just wondering why changing the tint color using the setControlTint of the progress bar to NSGraphiteControlTint doesn't has any effect, I keep seeing that aqua colors... I have tried finding answers online but it seems everybody has that problem.. or everybody is doing somethi

Re: NSRuler and non linear measurements

2011-02-25 Thread Quincey Morris
On Feb 25, 2011, at 07:25, Carlos Eduardo Mello wrote: > (Sorry if you are receiving this message again, but since i got zero > response the first time, i imagined it might not have been delivered...) It was delivered, but no one had an answer. Or, not a solution, anyway. > I am using a vertic

Re: NSRuler and non linear measurements

2011-02-25 Thread Kyle Sluder
On Fri, Feb 25, 2011 at 7:25 AM, Carlos Eduardo Mello wrote: > (Sorry if  you are receiving this message again, but since i got zero > response the first time, i imagined it might not have been delivered...) Rather than resending messages to the list, you should probably first check the list arch

Re: Using asynchronous APIs with NSOperation

2011-02-25 Thread Matt Neuburg
On Thu, 24 Feb 2011 10:08:44 -0500, Matt DeFoor said: >I have been doing research in preparing to switch from manual >threading to the usage of NSOperation. Because my operations will be >executing asynchronous APIs from the CoreServices framework, it >appears that I'd be better off using concurre

Re: Help with Apple Helpbooks

2011-02-25 Thread Matt Neuburg
On Wed, 23 Feb 2011 04:19:22 -0800, Bruce Cresanta said: >Hello, > >I am authoring help for my application and can't even get a simple >implementation to work, let alone localization I think the way to do this is to start with a simple old-fashioned implementation and no localization. Then when

Re: proper use of QuartzCore

2011-02-25 Thread Matt Neuburg
On Thu, 24 Feb 2011 00:47:53 +0100, Federico Tessmann said: >Hi there. >I have to rotate an image continuously and I'm using now CALayers as the >image containers and I'm rotating thous CALayers by setting its Transform >property. > >Now I have two approaches to keep rotating these layers. > >1)

Re: NSNumberFormatter issue with method -setLocale

2011-02-25 Thread Ulf Dunkel
I have done some more research and trials, and now I wonder if +[NSLocale autoupdatingCurrentLocale] does work at all. A warning in Apple's Technical Q&A makes me wonder: I know this is an iOS Q&A and I am on Mac OS X, but ... I

NSRuler and non linear measurements

2011-02-25 Thread Carlos Eduardo Mello
(Sorry if you are receiving this message again, but since i got zero response the first time, i imagined it might not have been delivered...) Hi everone, I am using a vertical NSRuler with my CustomView-inside-ScrollView set up. I read every piece of documentation there is (guides, referenc

Re: Help Mixing Objective-C & Objective-C++

2011-02-25 Thread Sean McBride
On Thu, 24 Feb 2011 15:40:06 -0800, Greg Parker said: >> Unfortunately, this doesn't compile yet. This would require that LLVM >can be used for Objective-C++ modules and that the compiler flag -fobjc- >nonfragile-abi2 can be passed to the compiler driver. > >Try the Xcode 4 GM seed: the LLVM Compi

Re: Help Mixing Objective-C & Objective-C++

2011-02-25 Thread Sean McBride
On Fri, 25 Feb 2011 09:18:39 +0100, Jack Nutting said: >I'd also like to toss in a sixth option: Tell Xcode to compile *all* >your code in Objective-C++ mode! I don't recommend that. For one, you loose the clang static analyzer, which does not support C++. You also loose compilation speed (as y

Re: dynamic binding in initializers

2011-02-25 Thread Andy Lee
On Feb 24, 2011, at 10:21 AM, Roland King wrote: > It seems if I have a method I really don't want to be dynamic, I should call > it a class-specific name (which I just did, my internalInit is now > internalInit_MyClass, ugly though) This is the approach I take. Granted it's ugly, but at least i

original image size is not retained when it is exported as PDF using CGImageDestinationRef

2011-02-25 Thread Deepa
Hi, Please correct if I am posting to wrong mailing list. I am developing a Desktop application that supports exporting an PNG image to different image formats. When I export my PNG to (Refer the first link) to PDF format, it appears as shown in link2. http://www.flickr.com/photos/36018837@N05

Re: NSNumberFormatter issue with method -setLocale

2011-02-25 Thread Ulf Dunkel
Nobody, no hint? - - - - - On 24.02.2011 16:44, Ulf Dunkel wrote: Mac OS 10.6.6 and Xcode 3.2.5: I am playing with NSNumberFormatter stuff for various custom number edit fields, which will e.g. be used to auto-format dpi values, degree values, document measurement values with various format st

Re: Help Mixing Objective-C & Objective-C++

2011-02-25 Thread Jack Nutting
On Thu, Feb 24, 2011 at 4:31 PM, James Bucanek wrote: > (3) Using an auxiliary structure to contain all of the implementation > variables is a good alternative, but it has other drawbacks. First, it > seriously pollutes all of the implementation code with pointer redirection > through the ivar str