Changeset 2136
- Timestamp:
- Jun 17, 2007, 4:23:37 PM (15 years ago)
- Location:
- branches/file_selection
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/file_selection/NEWS
r2134 r2136 5 5 - Torrent file creation 6 6 - Partial licensing change -- see the LICENSE file for details 7 - Fix to UPnP support7 - Fix to UPnP 8 8 - Rechecking torrents is now done one torrent at a time 9 9 to avoid hammering the disk -
branches/file_selection/macosx/Controller.m
r2108 r2136 173 173 174 174 fBadger = [[Badger alloc] initWithLib: fLib]; 175 fOverlayWindow = [[DragOverlayWindow alloc] initWithLib: fLib];176 175 177 176 fIPCController = [[IPCController alloc] init]; … … 198 197 [fDisplayedTorrents release]; 199 198 [fBadger release]; 200 [fOverlayWindow release]; 199 if (fOverlayWindow) 200 [fOverlayWindow release]; 201 201 [fIPCController release]; 202 202 … … 215 215 216 216 [fWindow setAcceptsMouseMovedEvents: YES]; //ensure filter buttons display correctly 217 [fWindow addChildWindow: fOverlayWindow ordered: NSWindowAbove];218 217 219 218 fToolbar = [[NSToolbar alloc] initWithIdentifier: @"Transmission Toolbar"]; … … 2141 2140 tr_torrentClose(tempTor); 2142 2141 2143 [fOverlayWindow setFiles: files]; 2142 if (!fOverlayWindow) 2143 fOverlayWindow = [[DragOverlayWindow alloc] initWithLib: fLib forWindow: fWindow]; 2144 [fOverlayWindow setTorrents: files]; 2144 2145 2145 2146 return NSDragOperationCopy; … … 2149 2150 else if ([[pasteboard types] containsObject: NSURLPboardType]) 2150 2151 { 2152 if (!fOverlayWindow) 2153 fOverlayWindow = [[DragOverlayWindow alloc] initWithLib: fLib forWindow: fWindow]; 2151 2154 [fOverlayWindow setURL: [[NSURL URLFromPasteboard: pasteboard] relativeString]]; 2152 2155 … … 2160 2163 - (void) draggingExited: (id <NSDraggingInfo>) info 2161 2164 { 2162 [fOverlayWindow fadeOut]; 2165 if (fOverlayWindow) 2166 [fOverlayWindow fadeOut]; 2163 2167 } 2164 2168 2165 2169 - (BOOL) performDragOperation: (id <NSDraggingInfo>) info 2166 2170 { 2167 [fOverlayWindow fadeOut]; 2171 if (fOverlayWindow) 2172 [fOverlayWindow fadeOut]; 2168 2173 2169 2174 NSPasteboard * pasteboard = [info draggingPasteboard]; -
branches/file_selection/macosx/DragOverlayWindow.h
r1898 r2136 30 30 tr_handle_t * fLib; 31 31 32 //NSTimer * fFadeInTimer, * fFadeOutTimer;33 32 NSViewAnimation * fFadeInAnimation, * fFadeOutAnimation; 34 33 } 35 34 36 - (void) setFiles: (NSArray *) files; 35 - (id) initWithLib: (tr_handle_t *) lib forWindow: (NSWindow *) window; 36 - (void) setTorrents: (NSArray *) files; 37 37 - (void) setURL: (NSString *) url; 38 38 -
branches/file_selection/macosx/DragOverlayWindow.m
r1996 r2136 29 29 @implementation DragOverlayWindow 30 30 31 - (id) initWithLib: (tr_handle_t *) lib 31 - (id) initWithLib: (tr_handle_t *) lib forWindow: (NSWindow *) window 32 32 { 33 33 if (self = ([super initWithContentRect: NSMakeRect(0, 0, 1.0, 1.0) styleMask: NSBorderlessWindowMask … … 58 58 [fFadeOutAnimation setDuration: 0.5]; 59 59 [fFadeOutAnimation setAnimationBlockingMode: NSAnimationNonblockingThreaded]; 60 61 [window addChildWindow: self ordered: NSWindowAbove]; 60 62 } 61 63 return self; … … 70 72 } 71 73 72 - (void) set Files: (NSArray *) files74 - (void) setTorrents: (NSArray *) files 73 75 { 74 76 uint64_t size = 0;
Note: See TracChangeset
for help on using the changeset viewer.