Guest User

Untitled

a guest
Jan 19th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. -(id)init {
  2. if (self = [super init]) {
  3. NSArray *array;
  4. BOOL success = [[NSBundle mainBundle] loadNibNamed:@"ProfileWindow" owner: self topLevelObjects:&array];
  5. if (success) {
  6. for (id obj in array) {
  7. if ([obj isKindOfClass:[NSWindow class]]) {
  8. self.profileWindow = obj;
  9. }
  10. }
  11. [self.profileWindow makeKeyAndOrderFront:self];
  12. }
  13. }
  14. return self;
  15. }
Add Comment
Please, Sign In to add comment