Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 2, 2011, 08:16 PM   #1
adcx64
macrumors 65816
 
adcx64's Avatar
 
Join Date: Nov 2008
Location: Cudi Zone
Bringing window to front at launch.

Hi,
I have a window in my application. I want it to pop up in front of my main app, like a welcome screen. there is nothing in the Inspector that lets me have the window in front. How do I go about doing this?
__________________
iPhone 5, iOS 7, Verizon LTE
MacBook Air, OS X Mavericks
PlayStation 3 320GB

adcx64 is offline   0 Reply With Quote
Old Jun 2, 2011, 09:01 PM   #2
kainjow
Demi-God (Moderator emeritus)
 
kainjow's Avatar
 
Join Date: Jun 2000
Code:
[window makeKeyAndOrderFront:nil];
kainjow is offline   0 Reply With Quote
Old Jun 2, 2011, 09:12 PM   #3
adcx64
Thread Starter
macrumors 65816
 
adcx64's Avatar
 
Join Date: Nov 2008
Location: Cudi Zone
thanks

but where do I implement this code? i do not see my window in the Xcode viewer.
__________________
iPhone 5, iOS 7, Verizon LTE
MacBook Air, OS X Mavericks
PlayStation 3 320GB

adcx64 is offline   0 Reply With Quote
Old Jun 2, 2011, 09:20 PM   #4
jiminaus
macrumors 65816
 
Join Date: Dec 2010
Location: Sydney
Quote:
Originally Posted by adcx64 View Post
thanks

but where do I implement this code? i do not see my window in the Xcode viewer.
Try doing it from applicationDidFinishLaunching: in your app delegate.
jiminaus is offline   0 Reply With Quote
Old Jun 2, 2011, 09:21 PM   #5
kainjow
Demi-God (Moderator emeritus)
 
kainjow's Avatar
 
Join Date: Jun 2000
You need to learn Objective-C.

Read this: http://guides.macrumors.com/Cocoa_FAQ
kainjow is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Trouble bringing subview to front EducationApp iPhone/iPad Programming 4 Sep 12, 2011 03:26 AM
Applescript - bring popup window to front? poobear Mac Programming 3 Apr 22, 2011 06:57 AM
Ugh - Must iPhone bring iTunes to front when it's plugged in? MBHockey iPhone 41 Apr 13, 2011 11:25 PM
keeping a window in front at all times. believo Mac Applications and Mac App Store 9 Dec 1, 2009 08:10 AM
what does bring all to front mean? PHARAOHk Mac Help/Tips 2 Jun 26, 2003 10:13 PM


All times are GMT -5. The time now is 12:33 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC