Re: Conditionally adding NSButtonCell to a column of NSTableview and allowing button cell to take action even if the corresponding row is not allowed to be selected

2011-02-28 Thread Quincey Morris
On Feb 28, 2011, at 22:36, Deepa wrote: > I am already displaying a NSTableview with one column. The tableview is > disabled and I do not allow the user to select any row of the tableview. In > each row of this column I display a NSTextFieldCell. > > Now, I want to add one more column that disp

Static Analyzer is confusing me

2011-02-28 Thread Gerriet M. Denkmann
I have the following class: #import "BugTest.h" #ifdef MAKE_BUG_DISAPPEAR2 static const unsigned int kArraySize = 22; #else static unsigned int kArraySize = 22; #endif @implementation BugTest - (void)aBug; { NSUInteger bbb[kArraySize] ; #ifdef MAKE_BUG_DISAPPEAR1

Conditionally adding NSButtonCell to a column of NSTableview and allowing button cell to take action even if the corresponding row is not allowed to be selected

2011-02-28 Thread Deepa
Hi, I am developing an Desktop application for 10.5, 10.6. My requirements are as follows: I am already displaying a NSTableview with one column. The tableview is disabled and I do not allow the user to select any row of the tableview. In each row of this column I display a NSTextFieldCell. N

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

2011-02-28 Thread Deepa
Hi David, Thank you for the response. On 01-Mar-2011, at 2:47 AM, David Duncan wrote: > > On Feb 25, 2011, at 4:16 AM, Deepa wrote: > >> Please correct if I am posting to wrong mailing list. > > In general for CG functions, the CoreGraphics-Dev list is a better choice. The CoreGraphics-Dev i

Re: Function to get current Backtrace and Address Slide

2011-02-28 Thread Wim Lewis
On 28 Feb 2011, at 3:01 PM, Jerry Krinock wrote: > Apparently I can get the slides by using the _dyld_xxx_xxx_xxx() functions > from mach-o/dyld.h. I've tested the following and it seems to work. But > since I'm completely out of my league with this stuff I thought I'd throw > this code out t

Performing a Fetch Request on a specific MO.

2011-02-28 Thread Gustavo Pizano
Hello. I come from EOF bg, and i remember it was quite simple to let's say, ask a specific object to give me the max number of a entity which was related to. To make it clearer. Enity A has a toMany relation with Entity B. entity B has a property called versionNumber. So I want to get the

Function to get current Backtrace and Address Slide

2011-02-28 Thread Jerry Krinock
When my app encounters some errors, I display an error dialog offering the user to email me the current backtrace. That was easy to do using the backtrace() and backtrace_symbols() functions from execinfo.h, but I forgot to grab the dynamic-load address slide, which is needed to symbolize the a

Canceling all touches

2011-02-28 Thread Jon Brooks
I'm looking for a 'legal' way to cancel all the currently in-progress touches, exactly like they are cancelled when a UIAlertView is shown. After hours of searching (documentation, googling), I've come up empty. I see that the undocumented _cancelAllTouches in UIApplication is exactly what I

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

2011-02-28 Thread David Duncan
On Feb 25, 2011, at 4:16 AM, Deepa wrote: > Please correct if I am posting to wrong mailing list. In general for CG functions, the CoreGraphics-Dev list is a better choice. > I am developing a Desktop application that supports exporting an PNG image to > different image formats. > When I expor

Re: How to create a CGColorSpaceRef with DeviceN model?

2011-02-28 Thread David Duncan
On Feb 24, 2011, at 1:23 AM, Graham Cox wrote: > How do you create a CGColorSpaceRef using the DeviceN model? It appears as if > would allow spot colours to be specified, but I can't see how to create such > a colorspace. I haven't tried this, but I think you have to provide your own DeviceN c

NSTableView & hiding or updating tooltips

2011-02-28 Thread Eric Gorr
For my NSTableView, I have defined - (NSString *)tableView:toolTipForCell:rect:tableColumn:row:mouseLocation: and this does return the string I want to display and the NSTableView does display that string as a tooltip. The problem is that while the tooltip is being displayed, I click the mouse

Re: WindowID to front

2011-02-28 Thread Izidor Jerebic
On 28.2.2011, at 18:38, Peter Lübke wrote: > Representing AXTitle attributes to the user is presumably a lot more > transparent than everthing CGWindowListCopyWindowInfo() is guaranteed to > provide, since kCGWindowName is only an *Optional* Window List Key, and, as > the docs say: "...(Note t

Re: WindowID to front

2011-02-28 Thread Peter Lübke
Am 28.02.2011 um 16:55 schrieb Benedikt Iltisberger: Hey Peter, you are right. AXUIElementPerformAction(windowElement, kAXIncrementAction); Has no effect. I also recognized that the AXRaise seems to be not exactly what i wanted. If I raise a window for the first time it works fine. If I ra

Re: Accessibility in custom NSControl subclasses

2011-02-28 Thread Stephen Blinkhorn
nevermind, i'm going to post this question on the Accessibility list instead. On 27 Feb 2011, at 19:12, Stephen Blinkhorn wrote: Hello, I make extensive use of custom NSControls in some of my GUIs. Recently I ran into a problem whilst trying to implement accessibility features in these c

Re: WindowID to front

2011-02-28 Thread Benedikt Iltisberger
Hey Peter, you are right. AXUIElementPerformAction(windowElement, kAXIncrementAction); Has no effect. I also recognized that the AXRaise seems to be not exactly what i wanted. If I raise a window for the first time it works fine. If I raise other windows after that and try to raise the first win

Re: WindowID to front

2011-02-28 Thread Peter Lübke
Am 28.02.2011 um 15:10 schrieb Benedikt Iltisberger: Hey Peter, I did it exactly like you proposed. Works perfect :-) I am using following calls to make a selected window front most: AXUIElementPerformAction(windowElement, kAXRaiseAction); This should be sufficient to bring the window to fr

Re: WindowID to front

2011-02-28 Thread Benedikt Iltisberger
Hey Peter, I did it exactly like you proposed. Works perfect :-) I am using following calls to make a selected window front most: AXUIElementPerformAction(windowElement, kAXRaiseAction); AXUIElementPerformAction(windowElement, kAXIncrementAction); I simply used the fact that CGWindowListCopyWin

Re: WindowID to front

2011-02-28 Thread Peter Lübke
Uli, I apologize for my silly comment. Of course you are absolutely right. I totally overlooked you were refering to a User Session window ID, which is totally different from an application specific window ID. Cheers, Peter Am 28.02.2011 um 11:19 schrieb Peter Lübke: There's no problem acce

How to find unencoded characters

2011-02-28 Thread Gerriet M. Denkmann
There are quite a few characters, which OS X cannot print. E.g. 𫠉 0x2b809 (CJK Unified Ideographs Extension D) I would like to have a function or method like: BOOL myComputerCanDisplayThisUnicodeCodePoint( unsigned int codePoint); How can I get this information? Or something similar like: NSA

Re: WindowID to front

2011-02-28 Thread Peter Lübke
I'm pretty sure you don't really need CGWindowListCopyWindowInfo() to do this. Am 28.02.2011 um 11:51 schrieb Benedikt Iltisberger: Hi Peter, exactly what I thought. But how do I obtain the AXUIElementRef of a window which I looked up from the Window-Server (with CGWindowListCopyWindowIn

Re: NSNumberFormatter scientific notation and fraction digits

2011-02-28 Thread jonat...@mugginsoft.com
Hi Quincey Thanks for the reply. On 27 Feb 2011, at 22:07, Quincey Morris wrote: > On Feb 27, 2011, at 13:42, jonat...@mugginsoft.com wrote: > >> [self.formatter setMaximumFractionDigits:3]; >> [self.formatter setMinimumFractionDigits:3]; > > The documentation describes these as affecting "inp

Re: WindowID to front

2011-02-28 Thread Benedikt Iltisberger
Hi Peter, exactly what I thought. But how do I obtain the AXUIElementRef of a window which I looked up from the Window-Server (with CGWindowListCopyWindowInfo)? In other words: (Example) I have 4 Finder windows and I want to AXRaise a certain one. Therefore I create a list with CGWindowListCopy

Re: WindowID to front

2011-02-28 Thread Peter Lübke
There's no problem accessing a window by its (application specific!) ID by AppleEvents / AppleScript. (Must have been decades since you last opened Script Editor, Uli :-) ). Of course this depends on the application supporting AppleEvents... Just run this script in Script Editor: tell applicat

Re: WindowID to front

2011-02-28 Thread Benedikt Iltisberger
Hey Peter and Uli, @Peter: and this is possible using the windowID? I used it a couple of weeks ago and during this time I was talking to the apps using "tell [APP_NAME] ..." But I need to bring a window to front and not a process. And I already saved the windowID I obtained from CGWindowListCop

Re: WindowID to front

2011-02-28 Thread Uli Kusterer
On 27.02.2011, at 13:55, Benedikt Iltisberger wrote: > But how can I now set the selected window ID to front? > > (Note: It is a window of a foreign application which I want to set to front. > My own app wouldn't be a problem.) Not sure you can use that information for anything (I don't think A

Re: WindowID to front

2011-02-28 Thread Peter Lübke
Hi Benedikt, this is Interapplication Communication, so it seems it's time for you to get into AppleEvents:-) Send an AppleEvent to the other app to set the window's index to 1 (indexes in AppleEvents are 1-based!). Cheers, Peter p.s.: Schöne Grüße aus München Am 27.02.2011 um 13:55 sc