• 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: Mail.app like SplitView Handle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail.app like SplitView Handle


  • Subject: Re: Mail.app like SplitView Handle
  • From: Daniel Jalkut <email@hidden>
  • Date: Sat, 4 Mar 2006 13:37:00 -0500

Jullian: I just discovered what seems to be a robust implementation of just such a thing in the Growl application (BSD License).

Look at KNShelfSplitView in:

http://svn01.23i.net/growl/trunk/Extras/Feed/CustomViews/

Daniel

On Mar 4, 2006, at 1:21 PM, Julian Cain wrote:

Hi,
I am trying to implement a SplitView handle like in mail, itunes, iweb etc. I have written the following to get my cursor and detect mouseDown and dragged, now I am kinda stuck on where I should go. Any ideas?



- Header File -

//
//  HeaderResizeWidget.h
//  blah
//
//  Created by Julian Cain on 3/4/06.
//  Copyright 2006 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface HeaderResizeWidget : NSImageView {

    NSPoint _dragStart;
    float _initialLeftWidth;
}

@end


- File -

//
//  HeaderResizeWidget.m
//  blah
//
//  Created by Julian Cain on 3/4/06.
//  Copyright 2006 __MyCompanyName__. All rights reserved.
//

#import "HeaderResizeWidget.h"


@implementation HeaderResizeWidget

- (void)awakeFromNib {

	_initialLeftWidth = 165.0;
}

- (void)viewWillMoveToWindow:(id)fp8 {

}

- (void)resetCursorRects {
[self addCursorRect:[self bounds] cursor:[NSCursor resizeLeftRightCursor]];
}


- (void)mouseDown:(NSEvent *)theEvent {
	_dragStart = [theEvent locationInWindow];
	JCLog(@"mouseDown:");
}

- (void)mouseDragged:(NSEvent*)theEvent {
	JCLog(@"mouseDragged:%.2f",_dragStart);
}


~Julian Cain email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: was(Mail.app)iWeb.app like SplitView Handle
      • From: Julian Cain <email@hidden>
References: 
 >Mail.app like SplitView Handle (From: Julian Cain <email@hidden>)

  • Prev by Date: Mail.app like SplitView Handle
  • Next by Date: Applescript command and sdef
  • Previous by thread: Mail.app like SplitView Handle
  • Next by thread: Re: was(Mail.app)iWeb.app like SplitView Handle
  • Index(es):
    • Date
    • Thread