(no subject)

2011-03-22 Thread Bright
Hi everyone:
   When I use QTMovie to play movies. I want to custom myself  progress slider 
instead of the NSSlider.
How to custom the progress slider?
thks!
Bright


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: How to display the information in the columns ...... is OK

2009-07-27 Thread Bright
>The crash you're seeing is almost certainly occuring because you 

>aren't retaining infoDictionary correctly.

Haha. You are right. I added the "[infoDictionary retain];" at the end of 
the info code fragement.
At the same time, I modified  other code correspondingly. It is OK now. 
 Thank you.  Thank you for everyone's help
Bright
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re:Re: How to display the information in the columns of the table view?

2009-07-27 Thread Bright
>Try

>[tableRecordsArray addObject:infoDictionary]
>instead of
>> [tableRecordsArray insertObject:infoDictionary  atIndex:row+i];
>
>Tell us what tableRecordsArray is and how you allocate it.

 I have tried the replacement, it does not work.
The tableRecordsArray the NSArray object for conserve the dragged files to the 
table view.
I allocate it in the controller class's -awakeFromNib method.
   The enclosure is the code of Contoller.m  class . There is the  what the 
tableRecordsArray? is in detail.
Thanks a lot.

myController.rtf
Description: Binary data
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: How to display the information in the columns of the table view?

2009-07-26 Thread Bright
Hi Graham and Others,
  I am sorry for my doing. I am a new learning for cocoa. And the time using 
the Cocoa-dev
mailist for short time. So I am not familiar with the rules of the mailist very 
much.
  At the same time, English is not my mother language. So sometimes I do not 
know how to 
express myself and my questions.
I Am Sorry. Next time, I will comply the regulation. 
Bright
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re:How to display the file's basic information in the columns of the tableview

2009-07-26 Thread Bright


>Hi 
>   In the "- (BOOL)tableView: acceptDrop: row: dropOperation:" method, I tried 
> to insert the information Dictionary into the  Array use the code 
> "[tableRecordsArray insertObject:infoDictionary  atIndex:row+i];".
>But when I drop the file into the table view, the app exited immediately.
Now, I find that the code "[tableRecordsArray insertObject:infoDictionary  
atIndex:row+i];" maybe is not 
correct.  maybe I should not make the NSDictionary as an argument of the 
NSArray's method.
Could anyone tell me how to display the objects of the NSDictionary class into 
the different columns of a table view? 
thank you!

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: How to display the file's basic information in the columns of

2009-07-26 Thread Bright


>> But when I drop the file into the table view, the app exited immediately.
>
>Find the crash report and look at it; if you don't figure it out from that,
>send another message here with the crash report.


Hi
Sorry, I can not figure  out the crash report. Could you tell me  how to 
find the crash
report in detail?  But, I debug the application and find out that the the 
problem is this code
"[theRecordsArray?insertObject:infoDictionary? atIndex:row+i];". Maybe I should 
not 
make the NSDictionary as the augment of the NSArray's "insertObject:atIndex" 
method.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


How to display the file's basic information in the columns of the table view?

2009-07-25 Thread Bright
Hi all,

In my application, I want to drag the file into the table view. At the same 
time, display the file's basic information in the columns of the table view. 

Now, I got the basic information of the file and saved it in a NSDictionary 
object.The code is :theInfoDictionary 
=[NSDictionarydictionaryWithObjectsAndKeys:[filePath lastPathComponent], 
@"name",[filePath pathExtension], @"extension", modDate, @"modifiedDate",nil];

   In the "- (BOOL)tableView: acceptDrop: row: dropOperation:" method, I tried 
to insert the information Dictionary into the  Array use the code 
"[tableRecordsArray insertObject:infoDictionary  atIndex:row+i];".

But when I drop the file into the table view, the app exited immediately. But I 
do not know how to realize it.




   Note: The enclosure is the code of this application. I wish someone can find 
out the bug and amend it for me. Thank you.

  Any help greatly appreciated.




Audio Player.rtf
Description: Binary data
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

How to make the Contextual Menu on the tableview's empty rows unable?

2009-07-22 Thread Bright
Hi everyone:

   In the "Controller" class, I used the code  as follows  to finished the 
contextual menu

on the table view. And I succeeded. 

videoContextualMenu= [[[NSMenualloc] initWithTitle:@"Contextual Menu"] 
autorelease]; 



[videoContextualMenuinsertItemWithTitle:@"Delete"action:@selector(deleteVideoFile:)
   keyEquivalent:@"" atIndex:0];

[videoContextualMenuinsertItemWithTitle:@"Info"action:@selector(infoFile:)

 keyEquivalent:@""  atIndex:1];

[movieTablesetMenu:videoContextualMenu]; 




  Now I hope the contextual menu disappears in the empty rows. And it is only 
valid in the

rows which hold data. But I don't know how to implement the purpose... 




Any help greatly appreciated.




Bright


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


What is the difference between the -awakeFromNib and -init?

2009-07-14 Thread Bright
In applications, there are - (void)awakeFromNib and  - (id)init method at the 
same time.




- (void)awakeFromNib{

//add code

   }




- (id)init{

self = [super init];

if (self) { 

   //add code

   }

return self;

}







What's the difference between the two methods?




Thank you.




Bright
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


The code limit to the media type to .mp3 and .aiff

2009-07-08 Thread Bright
Hi Every Friend,

   In my app, my purpose is to limit the media type to the .mp3 and .aiff 

only when I drag files into a table view. Other type is not allowed.





  The code fragment is to limit the media type to mp3 and .aiff.  When I

drag file into table view, MP3 file is OK. But the .aiff file can not be

drop into the table view. 

  I spent so much time but it is not useful. Could any body look over

the code for me and help me to solve it?




  Thank you!! I will wait for your answer all the time. 

Wish you good luck.




This is my code:




- (BOOL)isFileUTIMP3:(NSString *)filePath 

{

BOOL isMP3File = NO,isAIFFFile=NO;

FSRef fileRef;

Boolean isDirectory;

if (FSPathMakeRef((constUInt8 *)[filePath fileSystemRepresentation], 
&fileRef, &isDirectory) == noErr)

{

CFDictionaryRef values = NULL;

CFStringRef attrs[1] = { kLSItemContentType };

CFArrayRef attrNames = CFArrayCreate(NULL, (constvoid **)attrs, 1, 
NULL);

if (LSCopyItemAttributes(&fileRef, kLSRolesViewer, attrNames, &values) 
== noErr)

{

if (values != NULL)

{

CFTypeRef uti = CFDictionaryGetValue(values, 
kLSItemContentType);

if (uti != NULL)

{

if (UTTypeConformsTo(uti, kUTTypeMP3)) 

{ isMP3File = YES; }

else 

{ if(UTTypeConformsTo(uti, CFSTR("public.aiff-audio")))

 isMP3File = YES;

}

CFRelease(values);

   }

 }

CFRelease(attrNames);

}

}

return isMP3File;

}




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Display the elements of array in a tablview ?

2009-07-07 Thread Bright
Now , I see.  Thank you for everyone's help.
Binding is useful, but sometimes maybe it is not suited to your need.
Bright





>On Jul 7, 2009, at 4:48 PM, Jesse Armand wrote:
>
>> I'm not even familiar with Bindings, is it convenient to use ?
>>
>
>   Once you understand all of its prerequisites, it can be. The better  
>question to ask is "is it convenient to use in this particular  
>scenario". The answer may be yes or no (perhaps emphatically).
>
>
>> I did an intensive development with Cocoa starting with Cocoa Touch,
>> so I'm used to using the equivalent UITableViewDataSource to populate
>> table views.
>
>   My understanding is there are differences in how the two work (from  
>one platform to the other) but they are basically the same concept. I  
>suggested it because "Bright" specifically mentioned (s)he used  
>bindings but wants an approach "using code only". I assumed (s)he  
>meant "not bindings". The only other way is the table datasource  
>protocol.
>
>--
>I.S.
>
>
>___
>
>Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
>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:
>http://lists.apple.com/mailman/options/cocoa-dev/ldl0313036%40163.com
>
>This email sent to ldl0313...@163.com
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Display the elements of array in a tablview ?

2009-07-07 Thread Bright
Hi Everyone, 
There is an array with several elements in my application. And I have shown 
the elements in a tableview
using binding.
But now I need to display the elements using code only. Could anyone help 
me? Which method should 
I  use?
Thank you for help!!
Bright

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Is there any document to explain the process about the

2009-07-07 Thread Bright
><http://developer.apple.com/documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/00_Introduction/introduction.html
> 

> >
><http://developer.apple.com/documentation/Cocoa/Conceptual/CoreDataUtilityTutorial/Articles/00_introduction.html
> 
> >
><http://developer.apple.com/iphone/library/documentation/DataManagement/Conceptual/iPhoneCoreData01/Introduction/Introduction.html
> 
>mmalc


Thanks very much.
 Is there any document to show/explain the process  to implement  the 
CoreRecipe?
sample concretely?
Thx.
Bright






>
>___
>
>Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
>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:
>http://lists.apple.com/mailman/options/cocoa-dev/ldl0313036%40163.com
>
>This email sent to ldl0313...@163.com
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Is there any document to explain the process about the DepartmentAndEmployee code?

2009-07-06 Thread Bright
Hi all,
  I need to use the Core Data Tech to my App. I am not familiar it very 
much.  I have read the documents about it. 
And I find there  are several sample code about Core Data, such as 
DepartmentAndEmployee and CoreRecipe 
But I don't know how  these code were implemented  step by step. Is there 
any document to show/explain the process 
to implement them concretely?
Thank you very much. Any  help is useful for me. Thank you!!
Bright
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Extract the names of all the files in some folder

2009-07-02 Thread Bright
Hi all,
   Suppose that all of the files are .mov file in a folder. Now in my App, I 
want to realize that it can 
extract the names of all the movie files in the folder. At the same time, it 
displays the names in the table
view of my application when the application launches every time.
   Could anyone give some directions about it ?  Both the basic principle and 
the key methods are important
for me. 
Thx.
Bright

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


About "[super dealloc];"

2009-06-01 Thread Bright
Hi ,all
In Cocoa, if there is "[super init];", there will be "[super dealloc];" 
correspondently at the end of this class.
But I find that sometimes if there is not "[super init];", there will be 
"[super dealloc];" correspondently too.
I puzzled. When should use the "[super dealloc];"?  Could anyone list all of 
case.


Bright

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re:Re: How to specify the file type to Audio file when dragging...?

2009-05-18 Thread Bright


>On May 18, 2009, at 9:28 PM, Bright wrote:
>
>> I am a novice of Cocoa. So can you tell me detailed about the  
>> specify the file type to Audio File
>> when dragging a file to tableview?
>>I tried the  "validateDrop method" and NSworkspace, but failed.
>
>
>That depends. Can you please post your code?
>
Hi ,this is my code,but the code can not limit the file to Audio file :

- (NSDragOperation)tableView:(NSTableView*)tv validateDrop:(id 
)info proposedRow:(int)row 
proposedDropOperation:(NSTableViewDropOperation)op

{

? ? [tv setDropRow:[tv numberOfRows] dropOperation:NSTableViewDropAbove];

? ? returnNSTableViewDropAbove;

}





- (BOOL)tableView:(NSTableView*)tv acceptDrop:(id )info 
row:(int)row dropOperation:(NSTableViewDropOperation)op

{? 

? ? NSPasteboard *myPasteboard=[info draggingPasteboard];

//NSArray *typeArray=[NSSound soundUnfilteredTypes];

   NSArray *typeArray=[NSArrayarrayWithObjects:NSFilenamesPboardType,nil];

? ? NSString *filePath,*availableType,*lastPathOfFileName;

? ? NSArray *filesList;

? ? int i;

? ? availableType=[myPasteboard availableTypeFromArray:typeArray];

? ? filesList=[myPasteboard propertyListForType:availableType];

? ? for (i=0;i<[filesList count];i++)

? ? {

? ? ? ? filePath=[filesList objectAtIndex:i];

lastPathOfFileName=[filePath lastPathComponent];

[songsFullPathinsertObject:filePath atIndex:row+i];

? ? ? ? [songsinsertObject:lastPathOfFileName atIndex:row+i];

? ? }

? ? [songTablereloadData];

? ? [songTableselectRow:row+i-1byExtendingSelection:NO];

returnYES;

}


thank you very much.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: How to specify the file type to Audio file when dragging...?

2009-05-18 Thread Bright
>On 5/13/09 9:58 AM, Nick Zitzmann said:

>
>>> But  how limit the file type to sound file only available when drag
>>> and drop files into tableview?
>>

>>You need to check for that in your validateDrop method, and return YES
>>if the desired file type is detected and NO otherwise.
>
>And you can check the file's type by using [NSWorkspace typeOfFile:error:].

>>
Hi
Thank you for your help.
I am a novice of Cocoa. So can you tell me detailed about the specify the 
file type to Audio File
when dragging a file to tableview?
I tried the "validateDrop method" and NSworkspace, but failed. Does this have 
relationship with UTIs?
thank you very much.


Bright
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


How to implement to create a new directory in a specified path and....?

2009-05-18 Thread Bright
Hi ,all
I completed an application about tableview and audio files. Allow you to 
drag  audio files into the tableview .
It will play the audio file if you double click the tableview's cell.
Now, I want to implement this result. When I drag and drop a sound file 
into the tableview, I want
the App to create a new directory in a specified path and copy the audio file 
into the directory. 
In other words, I want to create a library to store my audio file. How to 
implement it?
Thank you.
Bright
   

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


How to limit the file type when dragging?

2009-05-13 Thread Bright
Hi all
   
 Now, I want to drag and drop sound files(such as mp3) into a tableview to 
implement the sound-files' playing.
But  how limit the file type to sound file only available when drag and drop 
files into tableview?
my code is :

- (BOOL)tableView:(NSTableView*)tv acceptDrop:(id )info 
row:(int)row dropOperation:(NSTableViewDropOperation)op

{

NSPasteboard *myPasteboard=[info draggingPasteboard];

NSArray *typeArray=[NSArray arrayWithObjects:NSFilenamesPboardType,nil];

NSString *filePath,*availableType;

NSArray *filesList;

int i;

availableType=[myPasteboard availableTypeFromArray:typeArray];

filesList=[myPasteboard propertyListForType:availableType];




for (i=0;i<[filesList count];i++)

{

filePath=[filesList objectAtIndex:i];

[songs insertObject:filePath atIndex:row+i];

}

[songTable reloadData];

[songTable selectRow:row+i-1 byExtendingSelection:NO];

return YES;

}



Thank you 
Bright

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


How to solve the "command developer usr bin gcc-4.0 failed with exit code 1" mistake?

2009-05-09 Thread Bright
 hi 
 when I open a Apple's samplecode of cocoa  and run it, the mistake  of 
“command developer usr bin gcc-4.0 failed with exit code 1" is occur.
How to solve it?
thank you!





___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


How to show items in a list ,grid or coverflow?

2009-04-22 Thread Bright
Hi, 
In my App's tableview, I want to show the items in a list ,grid or 
coverflow.
 which APIs should I to call?Could anybody tell me?
  Tks very much.
Bright

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Fast Forward and backward about QuickTime movie

2009-04-21 Thread Bright

Hi douglas,
 thank you for your help.
 Now I expect that the speed is fast when user press the button and the 
speed
 is normal when user unfasten the button. I am a fresh man,ha. I don't know how
to do this. Could you tell more detail?thank you!
2009-04-21,"douglas welton"  
>To implement a fast (scan) forward or backward, simply set the movie's  
>playback rate to a value greater than 1.0 ( or -1.0 for going  
>backward).  You'll want to experiment with want looks best for you,  
>but a typical value might be 2.0, 4.0, 8.0... you get the picture.
>
>Depending on how you want to the user to interact with your fast  
>forward or fast backward buttons, you'll want to create an action that  
>interprets the button's click, then determines when to start the movie  
>playing at the "scan" rate.
>
>later,
>
>douglas
>
>On Apr 21, 2009, at 10:39 AM, Bright wrote:
>
>> Hi,
>>   By using the "-stepForward:" and the "-stepBackward:" methods
>> of the QTMovie class, I realized the forward/backward a frame
>> when I click the corresponding buttons.
>>   But my purpose is to implement fast forward and fast backward
>> when I press the corresponding buttons for a while. The result
>> should like the QuickTime Play's fast forward and fast backward
>> buttons.How to implement it? Any help is useful for me.
>>Thanks
>
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Fast Forward and backward about QuickTime movie

2009-04-21 Thread Bright
Hi,
   By using the "-stepForward:" and the "-stepBackward:" methods
of the QTMovie class, I realized the forward/backward a frame
when I click the corresponding buttons. 
   But my purpose is to implement fast forward and fast backward
when I press the corresponding buttons for a while. The result 
should like the QuickTime Play's fast forward and fast backward
buttons.How to implement it? Any help is useful for me.
Thanks
 Bight
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


How to play a sound file by Double-click in a tableview?

2009-04-21 Thread Bright
Hello everybody:
 I am writing an application about  sound playing. I can add some sound 
files to my Xib's tableview.
Now, I want to play a sound file by double-click it. But, I didn't find the 
method of this function. How to play a sound file by Double-click in a 
tableview? 
Thanks for all help.
Mac
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Create Library of Media File

2009-04-16 Thread Bright
Hi,everyone
 Now, I am trying to write a music player app. So I want to create a 
"Library" to add my sound files to it. 
The function of the library is same as iTunes library.  
What's the principle of creating the "Library"? And,how to implement it?
   Any clues and documents about about is lucky for me.
Mac

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com