Make Objective-C the default in Apple Docs

I was wondering if there's a way to make Objective-C the default for the extensive online class libraries?


When you search for something, at the top of the page you can switch between Swift and Objective-C. But Even when you switch it and search for something new, Swift is always the default. I don't use Swift and get tired of constantly switching it over. Even inside Xcode, I can't find a way to not make Swift show up first.


Any suggestions are welcome. Extra credit if you refrain from comments like "why don't you just use Swift instead"...


Thank you!

>I was wondering if there's a way


Not that I'm aware of.


As always, feel free to file feature requests against the docs via the bug reporter, bottom right - bonus points for adding your report #(s) to your thread for reference, thanks and good luck.

The Xcode documentation via Dash seems to keep the language preference.

This has been a thorn in my side for awhile now too. Maybe you should file a bug on it.

I agree with KMT and others that you should definitely file a bug about this. Please post your bug number, just for the record.

On the workaround front, note that the language is encoded as a query parameter in the URL. For example, this yields Swift:

https://developer.apple.com/documentation/appkit/nsapplication

while this yields Objective-C:

https://developer.apple.com/documentation/appkit/nsapplication?language=objc

It seems like you could write a Safari extension to rewrite these URLs, although I must confess that I don’t have enough direct experience with that tech to offer any technical help with that effort.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Make Objective-C the default in Apple Docs
 
 
Q