iPhoto and Scripting Bridge

2009-04-20 Thread Stefan Hafeneger
Hi, Does anybody know how to create new albums via Scripting Bridge in iPhoto? Doing this in AppleScript is not difficult, but I don't get it work via Scripting Bridge. Any ideas? With best wishes, Stefan ___ Cocoa-dev mailing list (Cocoa-dev@lis

[MEET] Aachen CocoaHeads TODAY (November 27, 2008)

2008-11-27 Thread Stefan Hafeneger
Hi everyone, Aachen CocoaHeads is today (November 27, 2008) at 7PM. Talks: (1) Amin Negm-Awad, "Dispatching in Objective-C", (2) Stefan Hafeneger, "Distributed Objects" Please visit http://www.cocoaheads.de/ for location information. See you there! Stefan smime.p7s

Trouble with layer-backed view on NSPreferencePane

2008-11-07 Thread Stefan Hafeneger
Hi, I use a layer-backed view on a preference pane. When I enable layer- backing the system preferences application does not do smooth transitions when the I select and deselect the pane. I could solve the first case. I start with no layer-backing and when the pane is shown I enable it.

Re: Two-way connection with NSConnection

2008-11-06 Thread Stefan Hafeneger
I've checked it again. The class name is still the one of the original object, but the class itself is NSDistributedObject. So it's exactly what I wanted. With best wishes, Stefan Am 06.11.2008 um 12:24 schrieb Jean-Daniel Dupas: Le 6 nov. 08 à 12:12, Stefan Hafeneger a écrit

Re: Two-way connection with NSConnection

2008-11-06 Thread Stefan Hafeneger
Hi, Okay that's what I wanted to hear. But still the object class(name) on the receiver (= server) side is not NSDistantObject but the original one. With best wishes, Stefan Am 06.11.2008 um 12:24 schrieb Jean-Daniel Dupas: Le 6 nov. 08 à 12:12, Stefan Hafeneger a écrit : H

Two-way connection with NSConnection

2008-11-06 Thread Stefan Hafeneger
Hi, I would like to set up a two way connection between processes using NSConnection. I currently have solved this vending an object in each process. Now someone proposed to send self as a parameter using the rootProxy to the vendor. This works, but I doubt that this is the best solutions

NSView enterFullScreenMode:withOptions: Transition

2008-10-09 Thread Stefan Hafeneger
Hi, I would like to do a smooth transition when entering full screen mode using enterFullScreenMode:withOptions:. In a early beta version of Leopar there were keys for providing animations. But they were dropped later. The Apple document "Animation Overview" states: "The NSView class pro

[MEET] Aachen CocoaHeads TODAY (September 25, 2008)

2008-09-25 Thread Stefan Hafeneger
Hi everyone, Aachen CocoaHeads is today (September 25, 2008) at 7PM. Talk: Kai Brüning, "Plug-ins for Interface Builder 3" Please visit http://www.cocoaheads.de/ for location information. See you there! Stefan smime.p7s Description: S/MIME cryptographic signature ___

MultiTouch.framework Beta Program

2008-09-06 Thread Stefan Hafeneger
Hi, We now started the beta program of our Cocoa multi-touch framework and also did a video (http://www.viddler.com/explore/i10rwthaachen/videos/ 1/ or alternative HD link http://www.vimeo.com/1651801) showing how to develop multi-touch applications for Mac OS X using our framework. If you

[MEET] Aachen CocoaHeads TODAY (August 28, 2008)

2008-08-28 Thread Stefan Hafeneger
Hi everyone, Aachen CocoaHeads is today (August 28, 2008) at 7PM. Talk: Stefan Hafeneger, "Developing multi-touch Applications for Mac OS X" Bring along your iPhone or iPod touch and your Mac to participate in the workshop. Please visit http://www.cocoaheads.de/ for location i

MultiTouch.framework Beta Program

2008-08-18 Thread Stefan Hafeneger
Hi everyone, Maybe some of you have already seen our video (http://www.youtube.com/watch?v=skZCBvWVu8A ) on YouTube. In this video we use an iPhone as mobile substitution for a multi-touch table, so you can develop and test multi-touch applications at any location. On the desktop side we use

CGWindowListCopyWindowInfo(), how to pick relevant windows

2008-08-14 Thread Stefan Hafeneger
Hi, I'm using the function CGWindowListCopyWindowInfo() to get a list of all visible windows since I want to do a hit test application wide. So my code is: CGWindowListCopyWindowInfo(kCGWindowListOptionOnScreenOnly | kCGWindowListExcludeDesktopElements, kCGNullWindowID) Afterwards I ite

Re: How to obtain NSApplication from kCGWindowOwnerPID?

2008-08-08 Thread Stefan Hafeneger
With best wishes, Stefan Am 08.08.2008 um 21:20 schrieb David Duncan: On Aug 8, 2008, at 11:46 AM, Stefan Hafeneger wrote: I would like to figure out the NSWindow object for a screen location. I could use CGWindowListCopyWindowInfo() to obtain a list of all visible windows and consequently

How to obtain NSApplication from kCGWindowOwnerPID?

2008-08-08 Thread Stefan Hafeneger
Hi, I would like to figure out the NSWindow object for a screen location. I could use CGWindowListCopyWindowInfo() to obtain a list of all visible windows and consequently the bounds of each window, the (window server's) window ID and the PID. I don't want to get a pointer to the NSWindow

[MEET] Aachen CocoaHeads TODAY (31 July 08)

2008-07-31 Thread Stefan Hafeneger
Hi everyone, Aachen CocoaHeads is today (31 July 08) at 7PM. Talk: Amin Negm-Awad, "Advanced Cocoa Bindings" Please visit http://www.cocoaheads.de/ for location information. See you there! Stefan smime.p7s Description: S/MIME cryptographic signature

__CGEvent structure

2008-06-26 Thread Stefan Hafeneger
Hi, I would like to know how the __CGEvent (CGEventRef) struct is defined, so if there is any possibility to attach some more data to an low level event than through the functions defined CGEvent.h. Any ideas? With best wishes, Stefan smime.p7s Description: S/MIME cryptographic signature _

[MEET] CocoaHeads Aachen Tonight

2008-06-26 Thread Stefan Hafeneger
Hi, Today is CocoaHeads Aachen meeting. Talks: - Werner Lonsing, "CoreImage: Digital Arts for Cocoa Developer" - Jonathan Diehl, "iPhone and SQLight" Afterwards we will do public viewing Soccer EM 2008 semifinal Russia vs. Spain. For more information please visit our website www.cocoaheads.

Re: Seconds since system startup

2008-06-24 Thread Stefan Hafeneger
Do a man 3 sysctl in the terminal and look for KERN_BOOTTIME On 24/06/2008, at 10:51 PM, Stefan Hafeneger wrote: Hi, I'm looking for a Cocoa function like GetCurrentEventTime() for Carbon to get the interval since system startup. Any ideas? With b

Seconds since system startup

2008-06-24 Thread Stefan Hafeneger
Hi, I'm looking for a Cocoa function like GetCurrentEventTime() for Carbon to get the interval since system startup. Any ideas? With best wishes, Stefan smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@li

[MEET] Aachen (Germany) CocoaHeads

2008-05-21 Thread Stefan Hafeneger
visit http://www.cocoaheads.org/de/Aachen/index.html or the official website http://hci.rwth-aachen.de/cocoaheads With best wishes, Stefan Hafeneger smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev

Re: Capsule-Style Toolbar Controls

2008-04-19 Thread Stefan Hafeneger
compatibility. I don't think the HIG has any guidance about when to use one or the other on Leopard, so I suppose you can use whichever you think looks best for your app. -Peter On Apr 18, 2008, at 3:22 PM, Stefan Hafeneger wrote: Hi Peter, Thanks for your reply. You are right. Sinc

Re: Capsule-Style Toolbar Controls

2008-04-18 Thread Stefan Hafeneger
IB. Your understanding of the NSToolbarItemGroup is correct. However, the view will not be automatically resized to fit the labels. For now, you will have to size the segments manually. -Peter On Apr 17, 2008, at 9:25 AM, Stefan Hafeneger wrote: Hi Peter, I uploaded two screenshots fro

Re: Capsule-Style Toolbar Controls

2008-04-17 Thread Stefan Hafeneger
at 1:27 PM, Stefan Hafeneger wrote: Hi, Has anyone tried to use the Capsule-Style Toolbar Controls in an app so that it looks and behaves like Mail or Preview? When I add them to my toolbar it looks like Mail. But if I compare them side by side the ones in Mail and Preview there is a 2 pixel

Capsule-Style Toolbar Controls

2008-04-16 Thread Stefan Hafeneger
Hi, Has anyone tried to use the Capsule-Style Toolbar Controls in an app so that it looks and behaves like Mail or Preview? When I add them to my toolbar it looks like Mail. But if I compare them side by side the ones in Mail and Preview there is a 2 pixel difference of the baseline. And

Re: NSVector, CGVector Additions

2008-04-07 Thread Stefan Hafeneger
Okay, I agree. So then just imagine the NS prefix is something else. Now please focus on the code not the naming conventions. ;-) With best wishes, Stefan Am 07.04.2008 um 06:08 schrieb Jens Alfke: On 6 Apr '08, at 11:59 AM, Stefan Hafeneger wrote: This is kind of a class Addition s

Re: NSVector, CGVector Additions

2008-04-06 Thread Stefan Hafeneger
code would be screwed. On 6 Apr 2008, at 19:22, Stefan Hafeneger wrote: Hi, I made a NSVector struct inclusive the typical methods. I adopted the style of the existing NSPoint, NSSize and NSRect structs and also made a CGVector struct. It would be nice if someone could have a look on that

unhandled property type encoding

2008-04-02 Thread Stefan Hafeneger
Hi, I've made a subclass of CALayer (actually CAOpenGLLayer) and defined a struct property. In the init method the [super init] call produces a runtime message unhandled property type encoding: `{_SHVector="x"f"y"f"z"f}' The app doesn't crash, but I don't find a solution to avoid this me

Re: CAOpenGLLayer

2008-04-02 Thread Stefan Hafeneger
Okay thank you. With best wishes, Stefan Am 02.04.2008 um 22:19 schrieb John Harper: Hi, yes, that seems like a good solution, John On Apr 2, 2008, at 12:23 PM, Stefan Hafeneger wrote: Hi John, I now setup the environment in copyCGLContextForPixelFormat. The folling code seemd

Re: CAOpenGLLayer

2008-04-02 Thread Stefan Hafeneger
Hi John, I now setup the environment in copyCGLContextForPixelFormat. The folling code seemd to work fine. Do you see anything that would create a crash or is this okay? The code should work if the view moves from one screen to another, shouldn't it? [CODE] - (CGLPixelFormatObj)copyCGLPix

CAOpenGLLayer

2008-03-29 Thread Stefan Hafeneger
ve to setup the environment in every drawInCGLContext:... call? With best wishes, Stefan Hafeneger ___ 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 coco