Skip to content
Newer
Older
100644 37 lines (26 sloc) 1.19 KB
3ec067e @mcormier initial import
authored Nov 16, 2009
1 How to make an ibplugin that opens up properly in
2 Interface Builder when double clicked.
3 -------------------------------------------------
4 1. - Copy the dependent framework into
5 *.ibplugin/Contents/Resources
6 2. - Clear the variable Dynamic Linking Install Name
7 [LD_DYLIB_INSTALL_NAME]
8
9 This will create an ibplugin that allows someone to
10 download and double click to use it immediately. Otherwise the
11 plugin will not work unless a copy of the framework is
12 located in /Library/Frameworks/.
13
0f21d84 @mcormier Added second note.
authored Nov 17, 2009
14
15 Referencing image files from within a framework
16 --------------------------------------------------
17 When referencing resources in a framework you cannot
18 use simple convenience methods such as this:
19
20 [NSImage imageNamed:imgName];
21
22 This is because the framework is a separate bundle
23 that is bundled within the application. You must
24 reference with code like this:
25
26 NSBundle *bundle = [NSBundle bundleForClass:[BWTransparentButtonCell class]];
27 buttonLeftN = [[NSImage alloc] initWithContentsOfFile:[bundle pathForImageResource:@"TransparentButtonLeftN.tiff"]];
28
29 Where the class is the framework class contained within
30 the framework bundle.
31
61a48ef @mcormier Testing web based commit.
authored Nov 18, 2009
32 Loading a Nib from within a framework
33 -------------------------------------
34 TODO....
35
0f21d84 @mcormier Added second note.
authored Nov 17, 2009
36
Something went wrong with that request. Please try again.