Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 08-27-2008, 12:22 PM   #69 (permalink)
DevTeamOfOne
New Member
 
Join Date: Aug 2008
Posts: 361
DevTeamOfOne is on a distinguished road
Default

Quote:
Originally Posted by RockStrongo View Post
Hey Dev...ok, so what did you mean by saying the interface file thinks its in the MainWindow.xib?

When I remove the IBOutlet's, it still performs the same.

How is MainView.xib associated with the app delegate? If I understand that, it might help out.
MainWindow.xib is tied at the base level with your app delegate through the info.plist file.

When you call IBOutlet in any interface file, you are saying: When my app launches, this section is shown in the IB file it launched with. In this case, MainWindow.xib.

What you need to do: call it as a property, that is, take out the IBOutlet bit, and also add in the @property bit.

Then Synthesize it into your app in the implementation file.

Then say

whateverItIs = [[WhateverItIs alloc] initWithNibFile:whateverItIs bundle:nil]; in the appDidFinishLaunching bit.

that creates a property that holds through the entire app. That property you have said, is a class of WhateverItIs, and you are telling the compiler to initiate it by activating the XIB file in no bundle.

Make sure you release this property at dealloc.
DevTeamOfOne is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,427
Threads: 94,023
Posts: 402,573
Top Poster: BrianSlick (7,978)
Welcome to our newest member, shakiraeb60
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:41 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.