Skip to content

Commit 768030f

Browse files
committed
remove old copyright notice leftover from legacy objc origins
1 parent d124214 commit 768030f

22 files changed

+5
-102
lines changed

cocoa/NSApplication.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package cocoa
62

73
import "github.com/progrium/macdriver/objc"
@@ -43,7 +39,7 @@ func NSApp() NSApplication {
4339
}
4440

4541
func NSApp_WithDidLaunch(cb func(notification objc.Object)) NSApplication {
46-
DefaultDelegateClass.AddMethod("applicationDidFinishLaunching:", func(_, notification objc.Object){
42+
DefaultDelegateClass.AddMethod("applicationDidFinishLaunching:", func(_, notification objc.Object) {
4743
cb(notification)
4844
})
4945
app := NSApp()

cocoa/NSApplicationMain.go

-17
This file was deleted.

cocoa/NSBundle.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package cocoa
62

73
import (

cocoa/NSColor.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package cocoa
62

73
import (

cocoa/NSFont.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package cocoa
62

73
import (

cocoa/NSImage.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package cocoa
62

73
/*

cocoa/NSImageView.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package cocoa
62

73
import (

cocoa/NSMenu.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package cocoa
62

73
import (

cocoa/NSMenuItem.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package cocoa
62

73
import (

cocoa/NSNib.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package cocoa
62

73
import (

cocoa/NSTextView.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package cocoa
62

73
import (

cocoa/NSWindow.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package cocoa
62

73
/*
@@ -146,6 +142,10 @@ func (w NSWindow) TitleVisibility() int64 {
146142
return w.Get("titleVisibility").Int()
147143
}
148144

145+
func (w NSWindow) SetHasShadow(b bool) {
146+
w.Set("hasShadow:", b)
147+
}
148+
149149
func (w NSWindow) SetOpaque(b bool) {
150150
w.Set("opaque:", b)
151151
}

cocoa/init.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package cocoa
62

73
/*

core/NSAutoreleasePool.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package core
62

73
import "github.com/progrium/macdriver/objc"

core/NSDictionary.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package core
62

73
import (

core/NSPoint.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package core
62

73
import "fmt"

core/NSRect.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package core
62

73
import "fmt"

core/NSRunLoop.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package core
62

73
import "github.com/progrium/macdriver/objc"

core/NSSize.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package core
62

73
import "fmt"

core/NSString.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package core
62

73
import (

core/NSThread.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package core
62

73
import "github.com/progrium/macdriver/objc"

core/NSUInteger.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright (c) 2012 The 'objc' Package Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style
3-
// license that can be found in the LICENSE file.
4-
51
package core
62

73
type NSUInteger uintptr

0 commit comments

Comments
 (0)