]> git.sesse.net Git - vlc/commitdiff
* MainMenu.nib, playlist.m: use NSSearchField instead of NSTextField, so we don't...
authorFelix Paul Kühne <fkuehne@videolan.org>
Thu, 2 Mar 2006 12:14:52 +0000 (12:14 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Thu, 2 Mar 2006 12:14:52 +0000 (12:14 +0000)
* update.m: use mtime() instead of NSCalenderDate for the time-stamp

* sfilters.m: fixed 2 compilation warnings (corrected UTF8String to char casting)

modules/gui/macosx/playlist.m
modules/gui/macosx/sfilters.m
modules/gui/macosx/update.m

index 96e8271a04f07e3fb28b5bb6b68e9dc67aab97f1..9bf6fd8d9f5aa0c93bb9380d325f5e48ee00df75 100644 (file)
@@ -463,27 +463,6 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
     vlc_list_release( p_list );
     vlc_object_release( p_playlist );
 
-    /* Change the simple textfield into a searchField if we can... */
-#if 0
-    if( MACOS_VERSION >= 10.3 )
-    {
-        NSView *o_parentview = [o_status_field superview];
-        NSSearchField *o_better_search_field = [[NSSearchField alloc]initWithFrame:[o_search_field frame]];
-        [o_better_search_field setRecentsAutosaveName:@"VLC media player search"];
-        [o_better_search_field setDelegate:self];
-        [[NSNotificationCenter defaultCenter] addObserver: self
-            selector: @selector(searchfieldChanged:)
-            name: NSControlTextDidChangeNotification
-            object: o_better_search_field];
-
-        [o_better_search_field setTarget:self];
-        [o_better_search_field setAction:@selector(searchItem:)];
-
-        [o_better_search_field setAutoresizingMask:NSViewMinXMargin];
-        [o_parentview addSubview:o_better_search_field];
-        [o_search_field setHidden:YES];
-    }
-#endif
     //[self playlistUpdated];
 }
 
@@ -524,7 +503,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
 {
     unsigned int i;
 
-    /* Clear indications of any existing column sorting*/
+    /* Clear indications of any existing column sorting */
     for( i = 0 ; i < [[o_outline_view tableColumns] count] ; i++ )
     {
         [o_outline_view setIndicatorImage:nil inTableColumn:
index 1235dd3b20e1343672b7bedee9d5e04868890412..d699d943143ee1d46224a7ab4d533244c7b37920 100644 (file)
@@ -414,7 +414,7 @@ static VLCsFilters *_o_sharedInstance = nil;
         }
         else
         {
-            val.psz_string = [[o_marq_marq_fld stringValue] UTF8String];
+            val.psz_string = (char *)[[o_marq_marq_fld stringValue] UTF8String];
         }
 
         if( p_input )
@@ -484,7 +484,7 @@ static VLCsFilters *_o_sharedInstance = nil;
         }
         else
         {
-            val.psz_string = [[o_time_stamp_fld stringValue] UTF8String];
+            val.psz_string = (char *)[[o_time_stamp_fld stringValue] UTF8String];
         }
 
         if( p_input )
index 9637eff5c132a134dc5e35b8eae1e4fa5c06bbfd..e0c210c0208b00ea40e280f859f633c95462e9e0 100644 (file)
@@ -143,8 +143,9 @@ static VLCUpdate *_o_sharedInstance = nil;
     int x = 0;
     NSString * pathToReleaseNote;
     pathToReleaseNote = [NSString stringWithFormat: \
-        @"/tmp/vlc_releasenote_%@.tmp", [[NSCalendarDate calendarDate] \
-        descriptionWithCalendarFormat: @"%m-%d-%y--%I.%M.%S.%F"]];
+        @"/tmp/vlc_releasenote_%d.tmp", mdate()]; /*[[NSCalendarDate calendarDate] \
+        descriptionWithCalendarFormat: @"%m-%d-%y--%I.%M.%S.%F"]];*/
+    NSLog( pathToReleaseNote );
     
     if( p_uit )
     {