• 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: Cocoa-dev Digest, Vol 4, Issue 712
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 4, Issue 712


  • Subject: Re: Cocoa-dev Digest, Vol 4, Issue 712
  • From: spiderlama <email@hidden>
  • Date: Wed, 25 Jul 2007 11:00:32 +1000

Or you can just run

[oMainWindow setFrame:originalFrame display:YES animate:YES]

on the window, and osx will animate for you!

Cheers

On 25/07/2007, at 8:33 AM, email@hidden wrote:

Il giorno 24/lug/07, alle ore 22:31, Brad Carter ha scritto:

- (void)windowDidMove:(NSNotification *)aNotification
{
	NSLog(@"window moved notification received");
	NSPoint windowPoint;
	screenRect = [[NSScreen mainScreen] frame];
	windowPoint.x = 0;
	windowPoint.y = (screenRect.size.height - MAINWINDOWHEIGHT);
	[oMainWindow setFrameOrigin:windowPoint];
}

A better approach may have the window animate back to its former position to provide feedback that it is not movable, rather than confuse the user by jumping back without any feedback. Mac users understand "speeding back" as it is the same animation that happens when you drag an object (ie a file) to a position you cannot drop it into.


(You can find almost-ready animation code in Quinn's source code, in my own AfloatAnimator at the Afloat open source project at Google Code -- warning, LGPL --, or use Cocoa's NSViewAnimation or Leopard's Core Animation.)

_______________________________________________

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


  • Prev by Date: Re: Quickest Drawing Method
  • Next by Date: Simple Undo Manager Problem
  • Previous by thread: Re: Capturing STDOUT from unit test
  • Next by thread: Simple Undo Manager Problem
  • Index(es):
    • Date
    • Thread