• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drag the whole window just by dragging the Image placed on it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: Drag the whole window just by dragging the Image placed on it?
  • From: Brandon Walkin <email@hidden>
  • Date: Fri, 23 Jan 2009 17:59:15 -0500

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 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 whole window there by only dragging the Image
, it does not works.


Is there is any way to drag the whole window just by dragging the Image
placed on it?




Thanks in advance!



Regards,

Rahul



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Drag the whole window just by dragging the Image placed on it? (From: "Rahulkumar" <email@hidden>)

  • Prev by Date: Re: sqlite iphone question....
  • Next by Date: Re: Cocoa-dev Digest, Vol 6, Issue 133
  • Previous by thread: Re: Drag the whole window just by dragging the Image placed on it?
  • Next by thread: hide a tabBar
  • Index(es):
    • Date
    • Thread