Skip to content

Commit

Permalink
Fixed bug where flattening (NSBitmapImageRep) produced some wasted me…
Browse files Browse the repository at this point in the history
…mory.
  • Loading branch information
bfolder committed Sep 6, 2012
1 parent cf657d4 commit 2f594a4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ @implementation BFAppDelegate
{
BFNavigationController *_navigationController;
NSWindowController *_controlWindowController;

}

@synthesize window = _window;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
<data>
<int key="IBDocument.SystemTarget">1070</int>
<string key="IBDocument.SystemVersion">11D50</string>
<string key="IBDocument.SystemVersion">11E53</string>
<string key="IBDocument.InterfaceBuilderVersion">2182</string>
<string key="IBDocument.AppKitVersion">1138.32</string>
<string key="IBDocument.HIToolboxVersion">568.00</string>
<string key="IBDocument.AppKitVersion">1138.47</string>
<string key="IBDocument.HIToolboxVersion">569.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="NS.object.0">2182</string>
Expand Down Expand Up @@ -43,7 +43,6 @@
<string key="NSFrame">{{0, 285}, {320, 17}}</string>
<reference key="NSSuperview" ref="762011810"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:1505</string>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="349951696">
Expand Down Expand Up @@ -166,7 +165,7 @@
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
<int key="maxID">20</int>
<int key="maxID">29</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
Expand Down
1 change: 1 addition & 0 deletions NSView+BFUtilities.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ -(NSImage *)flattenWithSubviews
[image lockFocus];
[bitmapRep drawAtPoint: fBounds.origin];
[image unlockFocus];
bitmapRep = nil;

return image;
}
Expand Down

0 comments on commit 2f594a4

Please sign in to comment.