Skip to content

Add new test for NSNibLoading. Add method loadNibNamed:owner:topLevelObjects: from TestPlant branch#114

Merged
gcasa merged 8 commits intomasterfrom
TP_NSNibLoading_branch
Oct 12, 2021
Merged

Add new test for NSNibLoading. Add method loadNibNamed:owner:topLevelObjects: from TestPlant branch#114
gcasa merged 8 commits intomasterfrom
TP_NSNibLoading_branch

Conversation

@gcasa
Copy link
Copy Markdown
Member

@gcasa gcasa commented Oct 11, 2021

No description provided.

@gcasa gcasa requested a review from rmottola October 11, 2021 13:46
@gcasa gcasa requested review from fredkiefer and rfm October 12, 2021 22:47
@rmottola
Copy link
Copy Markdown
Member

No apparent issues for me-

Copy link
Copy Markdown
Member

@rmottola rmottola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No apparent issues.

@gcasa gcasa merged commit 723ddc2 into master Oct 12, 2021
@gcasa gcasa deleted the TP_NSNibLoading_branch branch October 12, 2021 23:39
Copy link
Copy Markdown
Member

@fredkiefer fredkiefer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs some rewrite. Are you going to look into this or should I handle it?

}

- (BOOL) loadNibNamed: (NSString *)aNibName
owner: (id)owner
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation looks wrong.

{
NSDictionary *table = [NSDictionary dictionaryWithObject: owner forKey: NSNibOwner];

success = [self loadNibFile: aNibName
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this method should be build on top of [NSNib instantiateWithOwner:topLevelObjects:] and the code over there should be corrected to follow the new memory management guidelines.


if ([[path lastPathComponent] isEqualToString: @"obj"])
{
path = [path stringByDeletingLastPathComponent];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you change the value of path here? The new value never gets used. Either this is unnecessary or you should instantiate the NSBundle later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants