Skip to content

Commit

Permalink
Add MAS target with APPSTORE defined and private headers excluded
Browse files Browse the repository at this point in the history
  • Loading branch information
glebd committed Dec 27, 2010
1 parent 56bb0f6 commit 480ba61
Show file tree
Hide file tree
Showing 9 changed files with 475 additions and 8 deletions.
8 changes: 5 additions & 3 deletions BWAddRegularBottomBar.m
Expand Up @@ -16,7 +16,7 @@ - (id)initWithCoder:(NSCoder *)decoder;
if ((self = [super initWithCoder:decoder]) != nil)
{
if ([self respondsToSelector:@selector(ibDidAddToDesignableDocument:)])
[self performSelector:@selector(addBottomBar) withObject:nil afterDelay:0];
[self performSelector:@selector(addBottomBar) withObject:nil afterDelay:0];
}
return self;
}
Expand All @@ -29,10 +29,12 @@ - (void)awakeFromNib
- (void)drawRect:(NSRect)aRect
{
if ([self respondsToSelector:@selector(ibDidAddToDesignableDocument:)] && [[self window] contentBorderThicknessForEdge:NSMinYEdge] == 0)
[self performSelector:@selector(addBottomBar) withObject:nil afterDelay:0];

[self performSelector:@selector(addBottomBar) withObject:nil afterDelay:0];

#ifndef APPSTORE
if ([[self window] isSheet] && [[self window] respondsToSelector:@selector(setMovable:)])
[[self window] setMovable:NO];
#endif
}

- (NSRect)bounds
Expand Down
8 changes: 5 additions & 3 deletions BWAddSmallBottomBar.m
Expand Up @@ -16,7 +16,7 @@ - (id)initWithCoder:(NSCoder *)decoder;
if ((self = [super initWithCoder:decoder]) != nil)
{
if ([self respondsToSelector:@selector(ibDidAddToDesignableDocument:)])
[self performSelector:@selector(addBottomBar) withObject:nil afterDelay:0];
[self performSelector:@selector(addBottomBar) withObject:nil afterDelay:0];
}
return self;
}
Expand All @@ -29,10 +29,12 @@ - (void)awakeFromNib
- (void)drawRect:(NSRect)aRect
{
if ([self respondsToSelector:@selector(ibDidAddToDesignableDocument:)] && [[self window] contentBorderThicknessForEdge:NSMinYEdge] == 0)
[self performSelector:@selector(addBottomBar) withObject:nil afterDelay:0];

[self performSelector:@selector(addBottomBar) withObject:nil afterDelay:0];

#ifndef APPSTORE
if ([[self window] isSheet] && [[self window] respondsToSelector:@selector(setMovable:)])
[[self window] setMovable:NO];
#endif
}

- (NSRect)bounds
Expand Down
2 changes: 1 addition & 1 deletion BWTokenAttachmentCell.h
Expand Up @@ -9,7 +9,7 @@
#import <Cocoa/Cocoa.h>
#import "NSTokenAttachmentCell.h"

@interface BWTokenAttachmentCell : NSTokenAttachmentCell
@interface BWTokenAttachmentCell : NSTokenAttachmentCell
{

}
Expand Down
432 changes: 432 additions & 0 deletions BWToolkit.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions BWToolkitFrameworkMAS-Info.plist
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>BWToolkitFrameworkMAS</string>
<key>CFBundleIdentifier</key>
<string>com.brandonwalkin.BWToolkitFramework</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.2.5</string>
<key>NSPrincipalClass</key>
<string>BWToolkit</string>
</dict>
</plist>
1 change: 0 additions & 1 deletion NSCustomView.h
Expand Up @@ -24,4 +24,3 @@
- (id)initWithCoder:(id)fp8;

@end

3 changes: 3 additions & 0 deletions NSTokenAttachment.h
Expand Up @@ -4,6 +4,8 @@
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard.
*/

#ifndef APPSTORE

#import <Cocoa/Cocoa.h>

@interface NSTokenAttachment : NSTextAttachment
Expand All @@ -20,3 +22,4 @@

@end

#endif
4 changes: 4 additions & 0 deletions NSTokenAttachmentCell.h
Expand Up @@ -4,6 +4,8 @@
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard.
*/

#ifndef APPSTORE

#import <Cocoa/Cocoa.h>

@interface NSTokenAttachmentCell : NSTextAttachmentCell
Expand Down Expand Up @@ -50,3 +52,5 @@

@end

#endif

3 changes: 3 additions & 0 deletions NSWindow-NSTimeMachineSupport.h
Expand Up @@ -4,6 +4,8 @@
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard.
*/

#ifndef APPSTORE

#import <AppKit/NSWindow.h>

@interface NSWindow (NSTimeMachineSupport)
Expand All @@ -13,3 +15,4 @@
- (BOOL)isMovable;
@end

#endif

0 comments on commit 480ba61

Please sign in to comment.