Unique identification of foreign windows

2011-03-28 Thread Benedikt Iltisberger
Hey everybody, I am working with the the accessibility API and I need to identify windows (selected by the user). This identification must be unique. I tried many things but nothing worked out. I need this mechanism to check if a window (selected by the user) has been selected before. Checking

Testing apps on Mac OS X 10.5

2011-03-10 Thread Benedikt Iltisberger
Hello everybody, I would like to know how you all do your testing on older versions of Mac OS X. Do you run additional systems with older versions of Mac OS X or do you use virtual machines? What is the easiest way to check the compatibility of your app? Is it necessary to check the compatibilit

Re: Problems with setImage

2011-03-06 Thread Benedikt Iltisberger
again and have a nice day :-) Cheers Benedikt On 06.03.2011, at 09:38, Quincey Morris wrote: > On Mar 6, 2011, at 00:19, Benedikt Iltisberger wrote: > >> NSBitmapImageRep *bitmapRep = [[NSBitmapImageRep alloc] >> initWithCGImage:cgImage]; >> NSImage *image

Problems with setImage

2011-03-06 Thread Benedikt Iltisberger
Hello everybody, I have a problem with the setImage method because its leaking memory. I think I understood memory management but I still can't see the problem. Here is all related code: Headerfile Interface: NSButton * myButton; Headfile: @property (nonatomic, retain) IBOutlet N

Re: WindowID to front

2011-02-28 Thread Benedikt Iltisberger
ter Lübke wrote: > > 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: >> >> AXUIElementPerfo

Re: WindowID to front

2011-02-28 Thread Benedikt Iltisberger
ince I guess Benedict is working in the sphere of Accessibility anyway, it >> might indeed be more appropriate to just call AXRaise on the AXWindow >> element. >> The reason I proposed AppleEvents was because he was asking for adressing >> the window by its ID. >> >

Re: WindowID to front

2011-02-28 Thread Benedikt Iltisberger
might indeed be more appropriate to just call AXRaise on the AXWindow element. > The reason I proposed AppleEvents was because he was asking for adressing the > window by its ID. > > > Am 28.02.2011 um 10:33 schrieb Uli Kusterer: > > >> On 27.02.2011, at 13:55, Be

Re: WindowID to front

2011-02-28 Thread Benedikt Iltisberger
em. Cheers Benedikt On 28.02.2011, at 10:33, Uli Kusterer wrote: > 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 ow

WindowID to front

2011-02-27 Thread Benedikt Iltisberger
Hello everybody, I read tons of information on how to set and get the PID but i need a way to set a window to front (and not a window of a PID). The problem is that if I set a PID to front, it might not be the exact window i want because the process can have multiple windows. With help of the C