HomeStoreForumsWikiiPhone Native AppsiPhone AppsiPhone Apps modmyifone Downloadsmodmyifone Links






Go Back   ModMyiFone.com - iPhone | iPod Touch forums, news, apps, themes. > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Register FAQ Members List READ THIS Today's Posts Mark Forums Read

iPhone / iPod Touch SDK | Development Discussion SDK questions. A place for iPhone developers to post code snippets, discuss creating iPhone apps, and any other iPhone developing.


iPhone Optimized MMi | Browser Optimized MMi

Get more out of ModMyiFone by joining our free community. By registering you get privileges to download files from our downloads section and you may also post your questions in our forums! It's fast, free, and easy!

Opportunities at MMi | 1.1.4 Unlock|Jailbreak OS X / Win
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-30-2008, 03:01 PM
What's Jailbreak?
 
Join Date: Aug 2007
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via AIM to alexskiing Send a message via Skype™ to alexskiing
Interface Builder Help

Hi,
I was just wondering if anyone has found out how to implement an interface built by Interface Builder into the xcode project.

I have tried modifying the AppDelegate.m to this (see below),

Code:
- (void)applicationDidFinishLaunching:(UIApplication *)application {	
self.window = [[[NSBundle mainBundle] loadNibNamed:@”MainWindow” owner:self options:nil] objectAtIndex:0];
[window makeKeyAndVisible]; 
}
but I have had no success. I get compiler errors, but yet i cant see anything wrong with it.

Does anyone have any tips on how to get this working?

Thanks

Can someone just point me in the right direction? That is all I need

Last edited by alexskiing : 03-30-2008 at 03:04 PM. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2 (permalink)  
Old 03-30-2008, 05:13 PM
iPhone? More like MyPhone
 
Join Date: Nov 2007
Operating System: Intel Mac OSX Leopard
Posts: 137
Thanks: 3
Thanked 22 Times in 20 Posts

go to /Developer/Applications

Interface Builder will be there.
__________________
hit thanks if thanks are due.

1.1.4 pwned. 4.6 bl AT&T. baseband 04.05.02_G
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3 (permalink)  
Old 03-30-2008, 10:54 PM
spliket's Avatar
Green Apple
 
Join Date: Aug 2007
Posts: 81
Thanks: 5
Thanked 11 Times in 10 Posts

Cocoa Touch Support
FAQ: How do I configure my Cocoa Touch application to load a NIB file automatically?

*

Add a new key to your Info.plist called NSMainNibFile.
*

The value of this key should be a string containing the name of the nib file you would like to use—such as "MainWindow".
*

The naming convention of this nib is typically along the lines of MainWindow.
*

The .nib extension is not required in the Info.plist.
__________________
"Beware the voice without a face."
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to spliket For This Useful Post:
alexskiing (03-30-2008)
  #4 (permalink)  
Old 03-31-2008, 07:55 AM
What's Jailbreak?
 
Join Date: Aug 2007
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via AIM to alexskiing Send a message via Skype™ to alexskiing

Thank you very much, i will try that. I will report my findings in the morning.

Ok. what i found was that that method does not work. when I add the string to the info.plist it seems to have not effect. I also tried putting the code i had in testAppDelagate.m back in, but with no success.
I dont know quite what is going wrong, but thanks for the suggestions. If anyone has any more, please tell me.

Last edited by alexskiing : 03-31-2008 at 07:55 AM. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5 (permalink)  
Old 04-03-2008, 03:24 PM
Green Apple
 
Join Date: Apr 2008
Device + Firmware: iPhone 2.0 Official
Operating System: Mac OS X 10.5.2
Posts: 71
Thanks: 0
Thanked 5 Times in 4 Posts
Send a message via AIM to Niiro13 Send a message via MSN to Niiro13 Send a message via Yahoo to Niiro13

Did you remove all the other stuff that was already in there? (the view commands and such) Because I have what you have and it works.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  ModMyiFone.com - iPhone | iPod Touch forums, news, apps, themes. > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

ModMyMoto.com - ModMyGPhone.com - ModMyiFone.com - Managed Dedicated Servers by SingleHop - iPhone Wallpapers - Contact Us - Link to us - Archive - Privacy Statement - - Top
Copyright © 2007-08 by ModMy, LLC. All rights reserved. You may not copy anything on this site unless you link to the original.
All times are GMT -6. The time now is 12:42 PM. Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5
ModMyiFone.com is an independent publication and has not been authorized, sponsored, or otherwise approved by Apple, Inc or Cisco Systems, Inc. The information contained on this site is for educational purposes only.
Forum skin by poetic_folly