drag the whole window just by dragging the Image placed on it

2009-01-28 Thread Rahulkumar
Few days ago I posted a querry that I can move a Window i.e. a NSWindow object with the just a simple call [myWindow setMovableByWindowBackground:TRUE]. This makes window movable from every point I drag my mouse pointer. Now if I place an NSImage Object over the window and try to drag the

Re: drag the whole window just by dragging the Image placed on it

2009-01-28 Thread Mike Abdullah
Look at -[NSView mouseDownCanMoveWindow] On 28 Jan 2009, at 09:07, Rahulkumar wrote: Few days ago I posted a querry that I can move a Window i.e. a NSWindow object with the just a simple call [myWindow setMovableByWindowBackground:TRUE]. This makes window movable from every point I

Re: Drag the whole window just by dragging the Image placed on it?

2009-01-23 Thread Luca
Hmm, i would subclass NSImage making it sending data to its window. But...I'm curious to see how others would do this. Luca C. Il giorno 23/gen/09, alle ore 10:54, Rahulkumar rahulkumar_tibde...@persistent.co.in ha scritto: Hi All, I can move a Window i.e. a NSWindow object with the

Re: Drag the whole window just by dragging the Image placed on it?

2009-01-23 Thread Brandon Walkin
Use an NSImageView subclass to draw your image. Put this code in the subclass: - (BOOL)mouseDownCanMoveWindow { return YES; } On 23-Jan-09, at 4:54 AM, Rahulkumar wrote: Hi All, I can move a Window i.e. a NSWindow object with the just a simple call [myWindow