Hey guys,
so I am creating a sort of movie player (it just displays pictures to create the video) and I want to have controls like in quicktime. I have buttons underneath my NSImageView and have them working. What I am looking for now is when the user moves their mouse onto the NSImageView, a view comes up with buttons the user can press to perform the same actions as the controls under the NSImageView.
If anyone could point me in the right direction that would be great. I'm thinking I need to find a method that will notify when the mouse is over the image view and found mouse:inRect: which I think will take care of that. Although I'm not entirely sure how to get that method to work properly? I'm unsure how to call the method? Do I need to have a timer running that calls that method? There has to be an easier way.
My next problem is what is the best way to show the controls? Do I create a view in IB and put controls on them and just show/ hide it based on the return from mouse:inRect? Or should I create a new NIB file and load that? If it is the latter, how do I link the buttons in the NIB to the methods that already work? Also, how do I hide the title bar as all I want are buttons surrounded by a rectangle.
Thanks for any help.
Dan
so I am creating a sort of movie player (it just displays pictures to create the video) and I want to have controls like in quicktime. I have buttons underneath my NSImageView and have them working. What I am looking for now is when the user moves their mouse onto the NSImageView, a view comes up with buttons the user can press to perform the same actions as the controls under the NSImageView.
If anyone could point me in the right direction that would be great. I'm thinking I need to find a method that will notify when the mouse is over the image view and found mouse:inRect: which I think will take care of that. Although I'm not entirely sure how to get that method to work properly? I'm unsure how to call the method? Do I need to have a timer running that calls that method? There has to be an easier way.
My next problem is what is the best way to show the controls? Do I create a view in IB and put controls on them and just show/ hide it based on the return from mouse:inRect? Or should I create a new NIB file and load that? If it is the latter, how do I link the buttons in the NIB to the methods that already work? Also, how do I hide the title bar as all I want are buttons surrounded by a rectangle.
Thanks for any help.
Dan
Last edited: