Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6967823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:22:20+00:00 2026-05-27T16:22:20+00:00

Lets say I have the following xibs: IssueSelectorViewController File’s Owner: IssueSelectorViewController IssueCell – Files

  • 0

Lets say I have the following xibs:

  • IssueSelectorViewController
    • File’s Owner: IssueSelectorViewController
  • IssueCell – Files Owner – IssueSelectorViewController
    • File’s Owner: IssueSelectorViewController

In the IssueSelectorViewController.h file I have the following:

@interface IssueSelectorViewController : UIViewController <AQGridViewDelegate, AQGridViewDataSource, ReaderViewControllerDelegate,UIScrollViewDelegate, IconDownloaderDelegate>
@property (nonatomic, strong) IBOutlet AQGridView * gridView;
@property (nonatomic, strong) IBOutlet IssueCell *gridViewCellContent;
...
@end

Inside IssueSelectorViewController.xib, I make an outlet connection from gridView –>Actual Grid View. This makes sense to me as I have a grid view in this object and want to connect to it so I have access to it from code.

Inside IssueCell.xib when clicking File’s Owner, I have an outlet gridViewCellContent which I make a connection to IssueCell object. This works and allows my program to run, but what is this really doing? In IssueSelectorviewController I need access to IssueCell to figure out the width and height of each of my cells. I saw this being done in an example, but I don’t understand it completely.

EDIT:

Here is where I use self.gridViewCellContent, how does this work? Which IssueCell is it pointing to?

- (CGSize)portraitGridCellSizeForGridView:(AQGridView *)aGridView
{
    [[NSBundle mainBundle] loadNibNamed:@"IssueCell" owner:self options:nil];
    return self.gridViewCellContent.frame.size;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:22:21+00:00Added an answer on May 27, 2026 at 4:22 pm

    “File’s Owner” in a nib is a proxy or placeholder. When the nib is actually loaded, any connections to this placeholder are made to the real object that actually owns the nib. So when you do [UIViewController initWithNibName:bundle:], the file’s owner placeholder is replaced by the actual view controller object.

    It’s very similar when you load a custom table view cell (I’m assuming you do that within your tableView:cellForRowAtIndexPath: method). You load the nib, specify an owner, and that owner object gets all the connections that the “file’s owner” placeholder had in the nib itself.

    I hope that makes sense?

    If you post your tableView:cellForRowAtIndexPath:, you can see where that connection is made. (Or if you registered a nib for the tableView then you specified the owner when you created that.)

    EDIT

    ok, so from the code you posted:

    [[NSBundle mainBundle] loadNibNamed:@"IssueCell" owner:self options:nil];

    You specified the owner as ‘self’, so ‘self.gridViewCellContent’ should be the new cell that was just loaded from the nib, presuming you made the right connections in the nib. When the nib is loaded, any connection made to “file’s owner” in the nib will now be made to ‘self’ (your view controller).

    (Seems strange you are loading the nib there, when that method expects an AQGridView* as a parameter, but I guess you know what you’re doing there)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets say i have the following set of interfaces.... public interface IStart { void
Lets say I have the following XML file: <?xml version=1.0 encoding=utf-8?> <Customers xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:noNamespaceSchemaLocation=Customer.xsd>
Lets say we have the following file and [folder] structure in a project with
Lets say I have the following class structure in my data access layer: interface
Lets say I have the following file in called index in the directory D:\Experimental:
Lets say I have the following piece of start in a PHP file: /**
Lets say we have the following in the default.aspx file <asp:Literal runat=server Text=<%= TestMethod()
Lets say I have the following code: abstract class Animal case class Dog(name:String) extends
Lets say I have the following: public class MyObject { [Bindable] public var foo:int
Lets say i have the following c# classes: abstract class a { protected abstract

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.