Skip to content

Commit

Permalink
Add possible problems
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfmin committed Dec 17, 2011
1 parent 46df4f1 commit e33579a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions _posts/2011-12-17-use-popover-step-by-step.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ layout: post
title: Use popover step by step
---

## Correct Steps

1. Create a project

![image](/images/use-pop-over/p1.png)
Expand Down Expand Up @@ -50,3 +52,37 @@ title: Use popover step by step

![image](/images/use-pop-over/p10.png)


## Possible Problems

1. loaded the "PopoverViewController" nib but no view was set.

2011-12-17 23:17:37.791 UsePopover[3355:707] -[NSViewController loadView] loaded the "PopoverViewController" nib but no view was set.
2011-12-17 23:17:37.793 UsePopover[3355:707] (
0 CoreFoundation 0x00007fff924d6286 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff8ab25d5e objc_exception_throw + 43
2 CoreFoundation 0x00007fff924d60ba +[NSException raise:format:arguments:] + 106
3 CoreFoundation 0x00007fff924d6044 +[NSException raise:format:] + 116
4 AppKit 0x00007fff8b6b9e21 -[NSViewController loadView] + 336
5 AppKit 0x00007fff8b6b5a8a -[NSViewController view] + 41
6 AppKit 0x00007fff8bdcd232 -[NSPopover showRelativeToRect:ofView:preferredEdge:] + 159
7 UsePopover 0x00000001000013db -[AppDelegate popup:] + 203
8 CoreFoundation 0x00007fff924c5a1d -[NSObject performSelector:withObject:] + 61
9 AppKit 0x00007fff8b68c710 -[NSApplication sendAction:to:from:] + 139
10 AppKit 0x00007fff8b68c642 -[NSControl sendAction:to:] + 88
11 AppKit 0x00007fff8b68c56d -[NSCell _sendActionFrom:] + 137
12 AppKit 0x00007fff8b68ba30 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2014
13 AppKit 0x00007fff8b70b8e0 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 489
14 AppKit 0x00007fff8b68a63a -[NSControl mouseDown:] + 786
15 AppKit 0x00007fff8b6550e0 -[NSWindow sendEvent:] + 6306
16 AppKit 0x00007fff8b5ed68f -[NSApplication sendEvent:] + 5593
17 AppKit 0x00007fff8b583682 -[NSApplication run] + 555
18 AppKit 0x00007fff8b80280c NSApplicationMain + 867
19 UsePopover 0x00000001000012d2 main + 34
20 UsePopover 0x00000001000012a4 start + 52
21 ??? 0x0000000000000003 0x0 + 3
)

This is because `PopoverViewController.xib` 's Controller class `PopoverViewController.xib` 's view property didn't connect to Interface Builder's Custom View, You can do so by this:

![image](/images/use-pop-over/p11.png)
Binary file added images/use-pop-over/p11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e33579a

Please sign in to comment.