2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-03-11 08:44:31 -08:00
|
|
|
#include "imgIContainer.h"
|
|
|
|
#include "nsCocoaUtils.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsCursorManager.h"
|
2008-02-19 12:58:01 -08:00
|
|
|
#include "nsObjCExceptions.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include <math.h>
|
|
|
|
|
|
|
|
static nsCursorManager *gInstance;
|
2012-07-30 07:20:58 -07:00
|
|
|
static imgIContainer *sCursorImgContainer = nullptr;
|
2010-03-11 08:44:31 -08:00
|
|
|
static const nsCursor sCustomCursor = eCursorCount;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/*! @category nsCursorManager(PrivateMethods)
|
|
|
|
Private methods for the cursor manager class.
|
|
|
|
*/
|
|
|
|
@interface nsCursorManager(PrivateMethods)
|
|
|
|
/*! @method getCursor:
|
|
|
|
@abstract Get a reference to the native Mac representation of a cursor.
|
|
|
|
@discussion Gets a reference to the Mac native implementation of a cursor.
|
|
|
|
If the cursor has been requested before, it is retreived from the cursor cache,
|
|
|
|
otherwise it is created and cached.
|
|
|
|
@param aCursor the cursor to get
|
|
|
|
@result the Mac native implementation of the cursor
|
|
|
|
*/
|
|
|
|
- (nsMacCursor *) getCursor: (nsCursor) aCursor;
|
|
|
|
|
2010-03-11 08:44:31 -08:00
|
|
|
/*! @method setMacCursor:
|
|
|
|
@abstract Set the current Mac native cursor
|
|
|
|
@discussion Sets the current cursor - this routine is what actually causes the cursor to change.
|
|
|
|
The argument is retained and the old cursor is released.
|
|
|
|
@param aMacCursor the cursor to set
|
|
|
|
@result NS_OK
|
|
|
|
*/
|
|
|
|
- (nsresult) setMacCursor: (nsMacCursor*) aMacCursor;
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
/*! @method createCursor:
|
|
|
|
@abstract Create a Mac native representation of a cursor.
|
|
|
|
@discussion Creates a version of the Mac native representation of this cursor
|
|
|
|
@param aCursor the cursor to create
|
|
|
|
@result the Mac native implementation of the cursor
|
|
|
|
*/
|
|
|
|
+ (nsMacCursor *) createCursor: (enum nsCursor) aCursor;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation nsCursorManager
|
|
|
|
|
|
|
|
+ (nsCursorManager *) sharedInstance
|
|
|
|
{
|
2008-02-19 12:58:01 -08:00
|
|
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NIL;
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
if (!gInstance) {
|
|
|
|
gInstance = [[nsCursorManager alloc] init];
|
|
|
|
}
|
|
|
|
return gInstance;
|
2008-02-19 12:58:01 -08:00
|
|
|
|
|
|
|
NS_OBJC_END_TRY_ABORT_BLOCK_NIL;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
+ (void) dispose
|
|
|
|
{
|
2008-02-19 12:58:01 -08:00
|
|
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
[gInstance release];
|
|
|
|
gInstance = nil;
|
2008-02-19 12:58:01 -08:00
|
|
|
|
|
|
|
NS_OBJC_END_TRY_ABORT_BLOCK;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2010-03-11 08:44:31 -08:00
|
|
|
+ (nsMacCursor *) createCursor: (enum nsCursor) aCursor
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2008-02-19 12:58:01 -08:00
|
|
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NIL;
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
switch(aCursor)
|
|
|
|
{
|
2009-12-11 14:17:27 -08:00
|
|
|
SEL cursorSelector;
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_standard:
|
2010-03-11 08:44:31 -08:00
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor arrowCursor] type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_wait:
|
2009-01-17 11:23:43 -08:00
|
|
|
case eCursor_spinning:
|
2010-07-28 06:12:12 -07:00
|
|
|
{
|
|
|
|
NSCursor* cursor1 = [nsMacCursor cocoaCursorWithImageNamed:@"spin1" hotSpot:NSMakePoint(1.0, 1.0)];
|
|
|
|
NSCursor* cursor2 = [nsMacCursor cocoaCursorWithImageNamed:@"spin2" hotSpot:NSMakePoint(1.0, 1.0)];
|
|
|
|
NSCursor* cursor3 = [nsMacCursor cocoaCursorWithImageNamed:@"spin3" hotSpot:NSMakePoint(1.0, 1.0)];
|
|
|
|
NSCursor* cursor4 = [nsMacCursor cocoaCursorWithImageNamed:@"spin4" hotSpot:NSMakePoint(1.0, 1.0)];
|
|
|
|
NSArray* spinCursorFrames = [[[NSArray alloc] initWithObjects:cursor1, cursor2, cursor3, cursor4, nil] autorelease];
|
|
|
|
return [nsMacCursor cursorWithFrames:spinCursorFrames type:aCursor];
|
|
|
|
}
|
2008-11-28 14:43:29 -08:00
|
|
|
case eCursor_select:
|
2010-03-11 08:44:31 -08:00
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor IBeamCursor] type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_hyperlink:
|
2010-03-11 08:44:31 -08:00
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor pointingHandCursor] type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_crosshair:
|
2010-03-11 08:44:31 -08:00
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor crosshairCursor] type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_move:
|
2012-09-28 01:27:11 -07:00
|
|
|
return [nsMacCursor cursorWithImageNamed:@"move" hotSpot:NSMakePoint(12,12) type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_help:
|
2012-09-28 01:27:11 -07:00
|
|
|
return [nsMacCursor cursorWithImageNamed:@"help" hotSpot:NSMakePoint(12,12) type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_copy:
|
2009-12-11 14:17:27 -08:00
|
|
|
cursorSelector = @selector(dragCopyCursor);
|
2010-03-11 08:44:31 -08:00
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor respondsToSelector:cursorSelector] ?
|
|
|
|
[NSCursor performSelector:cursorSelector] :
|
|
|
|
[NSCursor arrowCursor] type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_alias:
|
2009-12-11 14:17:27 -08:00
|
|
|
cursorSelector = @selector(dragLinkCursor);
|
2010-03-11 08:44:31 -08:00
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor respondsToSelector:cursorSelector] ?
|
|
|
|
[NSCursor performSelector:cursorSelector] :
|
|
|
|
[NSCursor arrowCursor] type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_context_menu:
|
2009-12-11 14:17:27 -08:00
|
|
|
cursorSelector = @selector(contextualMenuCursor);
|
2010-03-11 08:44:31 -08:00
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor respondsToSelector:cursorSelector] ?
|
|
|
|
[NSCursor performSelector:cursorSelector] :
|
|
|
|
[NSCursor arrowCursor] type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_cell:
|
2012-09-28 01:27:11 -07:00
|
|
|
return [nsMacCursor cursorWithImageNamed:@"cell" hotSpot:NSMakePoint(12,12) type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_grab:
|
2010-03-11 08:44:31 -08:00
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor openHandCursor] type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_grabbing:
|
2010-03-11 08:44:31 -08:00
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor closedHandCursor] type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_zoom_in:
|
2012-09-28 01:27:11 -07:00
|
|
|
return [nsMacCursor cursorWithImageNamed:@"zoomIn" hotSpot:NSMakePoint(10,10) type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_zoom_out:
|
2012-09-28 01:27:11 -07:00
|
|
|
return [nsMacCursor cursorWithImageNamed:@"zoomOut" hotSpot:NSMakePoint(10,10) type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_vertical_text:
|
2012-09-28 01:27:11 -07:00
|
|
|
return [nsMacCursor cursorWithImageNamed:@"vtIBeam" hotSpot:NSMakePoint(12,11) type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_all_scroll:
|
2010-03-11 08:44:31 -08:00
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor openHandCursor] type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_not_allowed:
|
|
|
|
case eCursor_no_drop:
|
2009-12-11 14:17:27 -08:00
|
|
|
cursorSelector = @selector(operationNotAllowedCursor);
|
2010-03-11 08:44:31 -08:00
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor respondsToSelector:cursorSelector] ?
|
|
|
|
[NSCursor performSelector:cursorSelector] :
|
|
|
|
[NSCursor arrowCursor] type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
// Resize Cursors:
|
2010-03-11 08:44:31 -08:00
|
|
|
// North
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_n_resize:
|
2010-03-11 08:44:31 -08:00
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor resizeUpCursor] type:aCursor];
|
|
|
|
// North East
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_ne_resize:
|
2012-09-28 01:27:11 -07:00
|
|
|
return [nsMacCursor cursorWithImageNamed:@"sizeNE" hotSpot:NSMakePoint(12,11) type:aCursor];
|
2010-03-11 08:44:31 -08:00
|
|
|
// East
|
|
|
|
case eCursor_e_resize:
|
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor resizeRightCursor] type:aCursor];
|
|
|
|
// South East
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_se_resize:
|
2012-09-28 01:27:11 -07:00
|
|
|
return [nsMacCursor cursorWithImageNamed:@"sizeSE" hotSpot:NSMakePoint(12,12) type:aCursor];
|
2010-03-11 08:44:31 -08:00
|
|
|
// South
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_s_resize:
|
2010-03-11 08:44:31 -08:00
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor resizeDownCursor] type:aCursor];
|
|
|
|
// South West
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_sw_resize:
|
2012-09-28 01:27:11 -07:00
|
|
|
return [nsMacCursor cursorWithImageNamed:@"sizeSW" hotSpot:NSMakePoint(10,12) type:aCursor];
|
2010-03-11 08:44:31 -08:00
|
|
|
// West
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_w_resize:
|
2010-03-11 08:44:31 -08:00
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor resizeLeftCursor] type:aCursor];
|
|
|
|
// North West
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_nw_resize:
|
2012-09-28 01:27:11 -07:00
|
|
|
return [nsMacCursor cursorWithImageNamed:@"sizeNW" hotSpot:NSMakePoint(11,11) type:aCursor];
|
2010-03-11 08:44:31 -08:00
|
|
|
// North & South
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_ns_resize:
|
2010-03-11 08:44:31 -08:00
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor resizeUpDownCursor] type:aCursor];
|
|
|
|
// East & West
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_ew_resize:
|
2010-03-11 08:44:31 -08:00
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor resizeLeftRightCursor] type:aCursor];
|
|
|
|
// North East & South West
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_nesw_resize:
|
2012-09-28 01:27:11 -07:00
|
|
|
return [nsMacCursor cursorWithImageNamed:@"sizeNESW" hotSpot:NSMakePoint(12,12) type:aCursor];
|
2010-03-11 08:44:31 -08:00
|
|
|
// North West & South East
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_nwse_resize:
|
2012-09-28 01:27:11 -07:00
|
|
|
return [nsMacCursor cursorWithImageNamed:@"sizeNWSE" hotSpot:NSMakePoint(12,12) type:aCursor];
|
2010-03-11 08:44:31 -08:00
|
|
|
// Column Resize
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_col_resize:
|
2012-09-28 01:27:11 -07:00
|
|
|
return [nsMacCursor cursorWithImageNamed:@"colResize" hotSpot:NSMakePoint(12,12) type:aCursor];
|
2010-03-11 08:44:31 -08:00
|
|
|
// Row Resize
|
2007-03-22 10:30:00 -07:00
|
|
|
case eCursor_row_resize:
|
2012-09-28 01:27:11 -07:00
|
|
|
return [nsMacCursor cursorWithImageNamed:@"rowResize" hotSpot:NSMakePoint(12,12) type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
default:
|
2010-03-11 08:44:31 -08:00
|
|
|
return [nsMacCursor cursorWithCursor:[NSCursor arrowCursor] type:aCursor];
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
2008-02-19 12:58:01 -08:00
|
|
|
|
|
|
|
NS_OBJC_END_TRY_ABORT_BLOCK_NIL;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
- (id) init
|
|
|
|
{
|
2008-02-19 12:58:01 -08:00
|
|
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NIL;
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
if ((self = [super init])) {
|
2008-02-19 12:58:01 -08:00
|
|
|
mCursors = [[NSMutableDictionary alloc] initWithCapacity:25];
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
return self;
|
2008-02-19 12:58:01 -08:00
|
|
|
|
|
|
|
NS_OBJC_END_TRY_ABORT_BLOCK_NIL;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2010-03-11 08:44:31 -08:00
|
|
|
- (nsresult) setCursor: (enum nsCursor) aCursor
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2010-03-11 08:44:31 -08:00
|
|
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
|
2008-02-19 12:58:01 -08:00
|
|
|
|
2009-09-07 14:40:10 -07:00
|
|
|
// Some plugins mess with our cursors and set a cursor that even
|
|
|
|
// [NSCursor currentCursor] doesn't know about. In case that happens, just
|
|
|
|
// reset the state.
|
|
|
|
[[NSCursor currentCursor] set];
|
|
|
|
|
2010-03-11 08:44:31 -08:00
|
|
|
nsCursor oldType = [mCurrentMacCursor type];
|
|
|
|
if (oldType != aCursor) {
|
2009-12-11 14:05:21 -08:00
|
|
|
if (aCursor == eCursor_none) {
|
|
|
|
[NSCursor hide];
|
2010-03-11 08:44:31 -08:00
|
|
|
} else if (oldType == eCursor_none) {
|
2009-12-11 14:05:21 -08:00
|
|
|
[NSCursor unhide];
|
|
|
|
}
|
2009-09-07 14:40:10 -07:00
|
|
|
}
|
2010-03-11 08:44:31 -08:00
|
|
|
[self setMacCursor:[self getCursor:aCursor]];
|
2009-09-07 14:40:10 -07:00
|
|
|
|
2010-03-11 08:44:31 -08:00
|
|
|
// if a custom cursor was previously set, release sCursorImgContainer
|
|
|
|
if (oldType == sCustomCursor) {
|
|
|
|
NS_IF_RELEASE(sCursorImgContainer);
|
|
|
|
}
|
|
|
|
return NS_OK;
|
|
|
|
|
|
|
|
NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT;
|
|
|
|
}
|
2009-12-11 14:05:21 -08:00
|
|
|
|
2010-03-11 08:44:31 -08:00
|
|
|
- (nsresult) setMacCursor: (nsMacCursor*) aMacCursor
|
|
|
|
{
|
|
|
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
|
|
|
|
|
|
|
|
if (mCurrentMacCursor != aMacCursor || ![mCurrentMacCursor isSet]) {
|
|
|
|
[aMacCursor retain];
|
|
|
|
[mCurrentMacCursor unset];
|
|
|
|
[aMacCursor set];
|
|
|
|
[mCurrentMacCursor release];
|
|
|
|
mCurrentMacCursor = aMacCursor;
|
|
|
|
}
|
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
|
|
|
|
NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT;
|
|
|
|
}
|
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
- (nsresult) setCursorWithImage: (imgIContainer*) aCursorImage hotSpotX: (uint32_t) aHotspotX hotSpotY: (uint32_t) aHotspotY
|
2010-03-11 08:44:31 -08:00
|
|
|
{
|
|
|
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
|
|
|
|
// As the user moves the mouse, this gets called repeatedly with the same aCursorImage
|
|
|
|
if (sCursorImgContainer == aCursorImage && mCurrentMacCursor) {
|
|
|
|
[self setMacCursor:mCurrentMacCursor];
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
[[NSCursor currentCursor] set];
|
2012-08-22 08:56:38 -07:00
|
|
|
int32_t width = 0, height = 0;
|
2010-03-11 08:44:31 -08:00
|
|
|
aCursorImage->GetWidth(&width);
|
|
|
|
aCursorImage->GetHeight(&height);
|
|
|
|
// prevent DoS attacks
|
|
|
|
if (width > 128 || height > 128) {
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NSImage *cursorImage;
|
|
|
|
nsresult rv = nsCocoaUtils::CreateNSImageFromImageContainer(aCursorImage, imgIContainer::FRAME_FIRST, &cursorImage);
|
|
|
|
if (NS_FAILED(rv) || !cursorImage) {
|
|
|
|
return NS_ERROR_FAILURE;
|
|
|
|
}
|
|
|
|
|
|
|
|
// if the hotspot is nonsensical, make it 0,0
|
2012-08-22 08:56:38 -07:00
|
|
|
aHotspotX = (aHotspotX > (uint32_t)width - 1) ? 0 : aHotspotX;
|
|
|
|
aHotspotY = (aHotspotY > (uint32_t)height - 1) ? 0 : aHotspotY;
|
2010-03-11 08:44:31 -08:00
|
|
|
|
|
|
|
NSPoint hotSpot = ::NSMakePoint(aHotspotX, aHotspotY);
|
|
|
|
[self setMacCursor:[nsMacCursor cursorWithCursor:[[NSCursor alloc] initWithImage:cursorImage hotSpot:hotSpot] type:sCustomCursor]];
|
|
|
|
[cursorImage release];
|
|
|
|
|
|
|
|
NS_IF_RELEASE(sCursorImgContainer);
|
|
|
|
sCursorImgContainer = aCursorImage;
|
|
|
|
NS_ADDREF(sCursorImgContainer);
|
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
|
|
|
|
NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
- (nsMacCursor *) getCursor: (enum nsCursor) aCursor
|
|
|
|
{
|
2008-02-19 12:58:01 -08:00
|
|
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NIL;
|
|
|
|
|
2010-03-11 08:44:31 -08:00
|
|
|
nsMacCursor * result = [mCursors objectForKey:[NSNumber numberWithInt:aCursor]];
|
2007-03-22 10:30:00 -07:00
|
|
|
if (!result) {
|
2010-03-11 08:44:31 -08:00
|
|
|
result = [nsCursorManager createCursor:aCursor];
|
|
|
|
[mCursors setObject:result forKey:[NSNumber numberWithInt:aCursor]];
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
return result;
|
2008-02-19 12:58:01 -08:00
|
|
|
|
|
|
|
NS_OBJC_END_TRY_ABORT_BLOCK_NIL;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void) dealloc
|
|
|
|
{
|
2008-02-19 12:58:01 -08:00
|
|
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
|
|
|
|
|
2010-03-11 08:44:31 -08:00
|
|
|
[mCurrentMacCursor unset];
|
|
|
|
[mCurrentMacCursor release];
|
|
|
|
[mCursors release];
|
|
|
|
NS_IF_RELEASE(sCursorImgContainer);
|
2008-02-19 12:58:01 -08:00
|
|
|
[super dealloc];
|
|
|
|
|
|
|
|
NS_OBJC_END_TRY_ABORT_BLOCK;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|