Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add xcodeproj for framework.

  • Loading branch information...
commit 7d63975cf34868939d30ed8696bbaef04d26c529 1 parent 1753f36
Dorian Johnson authored
15 Extras/INPopoverParentWindow.h
... ... @@ -1,15 +0,0 @@
1   -//
2   -// INPopoverParentWindow.h
3   -// Copyright 2011 Indragie Karunaratne. All rights reserved.
4   -//
5   -// Licensed under the BSD License <http://www.opensource.org/licenses/bsd-license>
6   -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7   -
8   -#import <Foundation/Foundation.h>
9   -
10   -
11   -@interface INPopoverParentWindow : NSWindow
12   -
13   -- (BOOL)isReallyKeyWindow;
14   -
15   -@end
34 Extras/INPopoverParentWindow.m
... ... @@ -1,34 +0,0 @@
1   -//
2   -// INAlwaysKeyWindow.m
3   -// Copyright 2011 Indragie Karunaratne. All rights reserved.
4   -//
5   -// Licensed under the BSD License <http://www.opensource.org/licenses/bsd-license>
6   -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7   -
8   -#import "INPopoverParentWindow.h"
9   -#import "INPopoverWindow.h"
10   -
11   -
12   -@implementation INPopoverParentWindow
13   -
14   -- (BOOL)isKeyWindow
15   -{
16   - BOOL isKey = [super isKeyWindow];
17   - if (!isKey) {
18   - for (NSWindow *childWindow in [self childWindows]) {
19   - if ([childWindow isKindOfClass:[INPopoverWindow class]]) {
20   - // if we have popover attached, window is key if app is active
21   - isKey = [NSApp isActive];
22   - break;
23   - }
24   - }
25   - }
26   - return isKey;
27   -}
28   -
29   -- (BOOL)isReallyKeyWindow
30   -{
31   - return [super isKeyWindow];
32   -}
33   -
34   -@end
2  INPopoverController.h
@@ -5,7 +5,7 @@
5 5 // Licensed under the BSD License <http://www.opensource.org/licenses/bsd-license>
6 6 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7 7
8   -#import <Foundation/Foundation.h>
  8 +#import <Cocoa/Cocoa.h>
9 9 #import "INPopoverControllerDefines.h"
10 10
11 11 @class INPopoverWindow;
4 INPopoverPrefixHeader.pch
... ... @@ -0,0 +1,4 @@
  1 +
  2 +#ifdef __OBJC__
  3 + #import <Cocoa/Cocoa.h>
  4 +#endif

0 comments on commit 7d63975

Please sign in to comment.
Something went wrong with that request. Please try again.