-
08-13-2008, 08:25 PM #1
Really Really Basic Application App Help
Hi so I was wondering if anyone could help me with an application. Basically all I want it to do is have an icon and when they open it up they get rickrolld. It should be really basic right? Could someone please tell me how to make this. I have absolutely no experience in coding. Thanks,
Glendoor
-
08-14-2008, 10:59 AM #2
What is rickrolld??
-
08-14-2008, 02:31 PM #3
It's when someone does something like open an application and expect it to be something but instead it plays Rick Astley's Never Gunna Give You Up music video. I can't believe you haven't hear of it. Any help?
-
08-14-2008, 08:18 PM #4Green Apple
- Join Date
- Jun 2008
- Location
- Depends on the day
- Posts
- 56
- Thanks
- 3
- Thanked 3 Times in 3 Posts
Just make the first thing to run is a command to play the video. But with a vista you wont be able to do much. My recomendation is to lose the Vista and buy a mac.
-
08-15-2008, 03:22 PM #5
I hate macs but my roommate has one so I can use his. Could you please add more detail like what to add and what program? Thanks
-
08-18-2008, 08:36 PM #6Green Apple
- Join Date
- Jun 2008
- Location
- Depends on the day
- Posts
- 56
- Thanks
- 3
- Thanked 3 Times in 3 Posts
(This is straight off Apple's Developer web site) Listing 6: Initiating video playback
-(void)playMovieAtURL
NSURL*)theURL
{
MPMoviePlayerController* theMovie=[[MPMoviePlayerController alloc] initWithContentURL:theURL];
theMovie.scalingMode=MPMovieScalingModeAspectFill;
theMovie.userCanShowTransportControls=NO;
// Register for the playback finished notification.
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(myMovieFinishedCallback
name:MPMoviePlayerPlaybackDidFinishNotification
object:theMovie];
// Movie playback is asynchronous, so this method returns immediately.
[theMovie play];
}
// When the movie is done,release the controller.
-(void)myMovieFinishedCallback
NSNotification*)aNotification
{
MPMoviePlayerController* theMovie=[aNotification object];
[[NSNotificationCenter defaultCenter] removeObserver:self
name:MPMoviePlayerPlaybackDidFinishNotification
object:theMovie];
// Release the movie instance created in playMovieAtURL
[theMovie release];
}



LinkBack URL
About LinkBacks
Reply With Quote