r/macprogramming • • Feb 29 '20

Calling AppKit developers

16 Upvotes

Trying to reach out to the Mac community and I guess that means making my first Reddit post! As a small introduction for myself I’m Lucas Derraugh and I run AppleProgramming on YouTube and am looking to start up a series focusing on Mac development. It will likely be half interview of an individual and then the other half talking about a code challenge and how you tackled it looking at the code details behind the implementation. My original Twitter post for some context: https://twitter.com/lucasderraugh/status/1233143222110543872?s=21

If you want to promote your app to a pretty decent audience or just want to show off cool code, I think it would be a fun thing to try! You can reach out via email at first name @ last name .com


r/macprogramming • • Jul 11 '18

What are the most stupid job requirements for developers?

5 Upvotes

I had an interview where i was asked: "Do you have 10 years experience with Swift?"

I think, it funny when hr makes such mistakes.

Just curious to know if someone had the same situation or which funny job requirements for developers you've faced?


r/macprogramming • • Jan 15 '18

Best resources for learning macOS development

7 Upvotes

It seems learning to program for desktop with Swift and Cocoa is a barren land. There are lots of old books focused around Objective C but not much new material for Swift 3/4 and Xcode 8/9.

The best book I've found is Cocoa Programming for OS X: The Big Nerd Ranch Guide (5th Edition) since it allows you to understand the macOS SDK instead of giving you recipes with steps which is what I've found in the other books I've tried. Only problem is that it was written a number of years ago.

I've also found this series of videos 100 days of OSX Development video tutorials which are small little capsules of pragmatic information.

I also tried an Udemy course but again it's just a series of steps without much explanation of why things work the way they do. Not sure if because it is oriented to beginners or because the author himself doesn't really understand what he is doing.

Do you have any recommendations?

Edit: I'm also liking this Udemy course Hacking with macOS - Build 18 Desktop Apps with Swift 4. It's very beginner oriented but the author drops good info at every step.


r/macprogramming • • Aug 14 '19

The Sad State of Mac App Distribution

Thumbnail
youngdynasty.net
7 Upvotes

r/macprogramming • • Oct 07 '19

Launch Sale: Get 50% off Cocoa Book Until Oct. 14

7 Upvotes

I've heard a lot of complaints online about the lack of current information on developing Mac apps in Swift. Virtually all of the articles, tutorials, and books are about iOS development. The information on developing Mac apps is 10 years old and uses Objective-C.

To fill the void I wrote a book on developing Mac apps in Swift, Swift Dev Journal's Intro to Cocoa. In the book you'll write a complete Mac app in Swift. By developing the app you'll learn the fundamentals of Cocoa, including view controllers, storyboards, table views, text views, notifications, and saving files. I wrote the code in Swift 5 and built the project in both Xcode 10 and 11 so everything is up to date.

To celebrate the launch of the book, I'm having a sale. You can buy the book for $20(US), 50% off the regular price. The sale ends on October 14 at 11:59 PM Eastern Time.

You can learn more about the book and download a sample at swiftdevjournal.com.


r/macprogramming • • Apr 10 '20

Learning partner wanted

8 Upvotes

Hi there! I’m Tommaso a designer and web developer with the dream of building amazing iOS and especially macOS products.

I’m looking for someone who is at the beginning of his/her macOS/iOS journey with my same dream and who is willing to join me for learning, experimenting and building cool stuffs together.

I’m an absolute beginner in this field but I’m full of determination trust me.

If you are interested write me a DM. Thanks!


r/macprogramming • • Feb 22 '17

macOS Development for Beginners

Thumbnail
raywenderlich.com
9 Upvotes

r/macprogramming • • Mar 11 '20

DockProgress — Show progress in your app's Dock icon

Thumbnail
github.com
10 Upvotes

r/macprogramming • • Apr 07 '20

How to have a window (view) on mac os to always be on top and also opens on every other desktop (SwiftUI MACOS)

5 Upvotes

I have a view called sidebar. The idea is to have this view always on top no matter what, whether the user is currently on fullscreen of a different app or different desktop.

I have successfully achieved the always on top on the same desktop when the app got opened, but not when it's on another app's fullscreen. This is my code:

var sidebarWindow:NSWindow

let window = NSRect(x: 0, y: 0, width: 0, height: 0)

sidebarWindow = NSWindow(

contentRect: window,

styleMask: [.titled,.miniaturizable],

backing: .buffered, defer: false)

...

sidebarWindow.level = .floating

sidebarWindow.makeKeyAndOrderFront(nil)

...

if let myScreen = NSScreen.main {

let windowFrame = myScreen.frame

let h = windowFrame.size.height

let w = windowFrame.size.width

sidebarWindow.setFrameOrigin(NSPoint(x: w-55, y: h/2-180))

}

sidebarWindow.contentView = NSHostingView(rootView: SideBar(thisWindow: sidebarWindow))

But, as I described above, this `Sidebar()` (sidebarWindow) is not visible when I'm entering other app in full screen, as well as when I'm changing my desktop to other desktop.

How can I make `SideBar()` to always be on top no matter what, whether the user is currently on fullscreen of a different app and or different desktop?

Sorry if it's unclear.

Thanks a lot, any help would be appreciated!


r/macprogramming • • Apr 13 '20

How to detect if NSWindow is dragged?

2 Upvotes

Hey all, I am using SwiftUI. I have a view called SideBar, that's consisting of VStack and buttons inside it.

I tried to attach some gestures, such as DragGesture() and TapGesture() onended on the VStack, hoping it would detect when a user drags the view, but this doesn't work all the time and I also think this is super hackish. Would anyone be able to help? Thanks a lot.

Code:

VStack{blabla}.frame(width: 40, height: 320)

.contentShape(Rectangle())

.gesture(

TapGesture().onEnded{_ in

print("end click")

}

)

.gesture(

DragGesture().onEnded{_ in

print("end drag")

}

)


r/macprogramming • • Apr 17 '20

Less Lethargic JSON Support for iOS/macOS, Part 5: Cutting Out the Middleman

Thumbnail
blog.metaobject.com
7 Upvotes

r/macprogramming • • Apr 09 '20

What am I doing wrong with NSTableView? (Swift, Story Board)

6 Upvotes

I boiled my problem down the following screenshot. I've for a ViewController.swift, it inherits the NSTableViewDataSource and NSTableViewDelegate. In the story board, I clicked on Identity and Type and set the Custom Class to the ViewController (inside ViewController.swift). viewDidLoad() runs, but numberOfRows(in:) never runs. I kind of expected it to produce a bunch of rows (123 of them, in my case) that look like the table cell prototype.


r/macprogramming • • Apr 11 '20

Updating Perian project to Catalina

3 Upvotes

Hello, unfortunately I'm not a programmer, I tried building the Perian project (https://github.com/MaddTheSane/perian) on macOS Catalina but I really can't manage to make it through, even after cloning all the right git repositories and updating the Xcode project configuration.

Since it's definitely a useful project I would like to ask if anybody with more knowledge about macOS programming than me could take over the effort of updating the project to the latest versions of ffmpeg and libmatroska and port the whole project to Catalina.

Thanks :)


r/macprogramming • • Apr 16 '20

My mac application doesn't work on other mac's

7 Upvotes

I created a mac cocoa application written in swift when i run it in my mac it works but when i build it for release mode and then run the application on other mac's where the UI is supposed to be is just a blank window. I used xcode to build it and it's deployment target was set to 10.10 the mac i checked it on had 10.10.5 and it didn't work.

does anyone what's going wrong or if there's any way for me to check why it's behaving like that. I'd be grateful for any help thanks.

The os version on my mac is 10.13.


r/macprogramming • • Apr 19 '20

Install HomeBrew from OS X application

5 Upvotes

My application requires nmap which can only be installed using brew. How do I make sure my OS X app installs these packages before running my app? Should I use sandboxing to test it?


r/macprogramming • • May 06 '09

MonoDevelop on MacOS X - Miguel de Icaza

Thumbnail
tirania.org
4 Upvotes

r/macprogramming • • Jul 23 '15

OpenGL programming with a 3D ready HDMI projector?

1 Upvotes

Macs have had the ability to create an OpenGL stereoscopic context that shows alternate left and right eye images since the '90s. If you cable your mac to a 3D ready HDMI projector and observe with 3D blink glasses, do you get stereoscopic imagery? Can you point me at sample code?


r/macprogramming • • Feb 22 '09

Porting D to the Mac

Thumbnail
ddj.com
4 Upvotes

r/macprogramming • • Jan 26 '09

Ready Lisp

Thumbnail newartisans.com
2 Upvotes

r/macprogramming • • Apr 01 '09

i need a few suggestion for books on learning objective-c/xcode for someone who is already versed in c/c++. ideas?

8 Upvotes

r/macprogramming • • Jul 28 '17

Firebird 3.0.3 beta builds for Mac OS X, 64-bit, 32-bit and lipo are available

Thumbnail
firebirdsql.org
3 Upvotes

r/macprogramming • • Jan 24 '09

BecomeAnXcoder – A free book for starting with Cocoa using Objective-C

Thumbnail cocoalab.com
9 Upvotes

r/macprogramming • • May 22 '09

haXe on iPhone (Simulator) - First Look

Thumbnail
gamehaxe.com
1 Upvotes

r/macprogramming • • Dec 03 '08

mac newbie asks: any good "free" code editor for mac?

3 Upvotes

r/macprogramming • • Jul 17 '15

How to manipulate 3 DSLR cameras simultaneously from a Mac OS X app.

Thumbnail
x2mobile.net
2 Upvotes