osx-yosemite

gcc 4.9.1 in OS X Yosemite - gcc: warning: couldn’t understand kern.osversion ‘14.0.0'

本秂侑毒 提交于 2019-11-27 11:44:23
问题 I install OS X Yosemite and now i have a huge problem with gcc 4.9.1 compiler. I hope some one can help me please. I try to compile my program and i have the warning message: gcc: warning: couldn’t understand kern.osversion ‘14.0.0' I search on google and i find https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61407 I try to apply the patch doing: sudo patch -p1 < /usr/local/bin/00-darwin-10.10.patch in gcc folder: /usr/local/bin/gcc and i received the message: can't find file to patch at input

How can I create Yosemite-style unified toolbar in Interface Builder?

拟墨画扇 提交于 2019-11-27 10:51:01
In OS X 10.10+ how can I create the "fat titlebar" kind of window that has a toolbar integrated with other gadgets in the window's title bar, like in the new Safari and Calendar? Create a standard toolbar When the window loads set: window.titleVisibility = NSWindowTitleHidden; // or .Hidden in Swift In your Window Controller: Put the following into your windowDidLoad override function. self.window!.titleVisibility = NSWindowTitleVisibility.Hidden As of Xcode 10, you can do this in your XIB or storyboard by turning on the “Hide Title” check box under the window's title in the window's

How to auto-load MySQL on startup on OS X Yosemite / El Capitan

旧城冷巷雨未停 提交于 2019-11-27 10:12:28
After upgrading OS X my install of MySQL stopped loading on startup. This walk-through on MySQL says: "The Startup Item installation adds a variable MYSQLCOM=-YES- to the system configuration file /etc/hostconfig. If you want to disable the automatic startup of MySQL, change this variable to MYSQLCOM=-NO-." So, I opened that file and it says: # This file is going away AFPSERVER=-NO- AUTHSERVER=-NO- TIMESYNC=-NO- QTSSERVER=-NO- MYSQLCOM=-YES- I assume OSX dev's added the # This file is going away but I'm not certain. If that is the case, what is the proper way to start MySQL on startup on OSX

Autostart MySQL Server on Mac OS X Yosemite/El Capitan

天涯浪子 提交于 2019-11-27 10:10:07
I would like to auto start the MySQL server on startup. This was possible in Mavericks but seems to be not working on Yosemite. edit : seems this works with El Capitan as well Xaver @dcc was very close. This is how MySQL autostarts again on Yosemite: The com.mysql.mysql.plist in /Library/LaunchDaemons : <?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>KeepAlive</key> <true/> <key>Label</key> <string>com.mysql.mysqld</string> <key>ProgramArguments</key> <array> <string>

Can't run Android Studio on Yosemite

孤者浪人 提交于 2019-11-27 10:06:48
问题 Can't install Java 7 (installer refuses). Can install Java 8. But then starting Android Studio, it says it needs to install the legacy JDK 6, which is not going to work for me because our projects are already 1.7. 回答1: We now have an official page describing what to do: http://tools.android.com/tech-docs/configuration/osx-jdk Please, please don't edit Info.plist; that has many downsides (including broken patches and application signatures breaking etc). As of Android Studio 1.0 we have a

Installing libv8 gem on OS X 10.9+

自古美人都是妖i 提交于 2019-11-27 09:58:08
I'm trying to install libv8 3.16.14.3 but getting an error on OSX Mavericks using latest stable rvm and ruby-1.9.3-p125. This is the output of running the command 'gem install libv8': ~/src(branch:master) » gem install libv8 Fetching: libv8-3.16.14.3.gem (100%) Building native extensions. This could take a while... ERROR: Error installing therubyracer: ERROR: Failed to build gem native extension. /Users/me/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb creating Makefile Compiling v8 for x64 Using python 2.7.5 Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx

How can I use NSVisualEffectView in window's title bar?

≯℡__Kan透↙ 提交于 2019-11-27 09:47:45
问题 In OS X Yosemite, Apple introduced a new class NSVisualEffectView . Currently, this class is undocumented, but we can use it in Interface Builder. How can I use NSVisualEffectView in the window's title bar? Here's example: in Safari, when you scroll, the content appears under the toolbar and titlebar with a vibrance and blur effect. 回答1: @sgonzalez's answer forced me to explore NSWindow.h file where i found titlebarAppearsTransparent property. So we get: class BluredWindow: NSWindow {

NSStatusItem change image for dark tint

ぐ巨炮叔叔 提交于 2019-11-27 09:30:09
问题 With OSX 10.10 beta 3, Apple released their dark tint option. Unfortunately, it also means that pretty much all status bar icons (with the exception of Apple's and Path Finder's that I've seen), including mine, remain dark on a dark background. How can I provide an alternate image for when dark tint is applied? I don't see an API change on NSStatusBar or NSStatusItem that shows me a change, I'm assuming it's a notification or something reactive to easily make the change as the user alters the

Swift Xcode Index Freezing or Slow

不羁岁月 提交于 2019-11-27 06:28:25
Maybe this is just me experiencing such an annoying "feature": After upgrading from Xcode 6.0.1 to Xcode 6.1, things changed. Xcode 6.1 is forever indexing the project or compiling source files. The project is not a huge one. It just contains a bunch of Swift files and AWS SDK 2.0 Cocoapods in the workspace. I don't think it should prevent the whole to index and compile smoothly. I tried with some aws-sdk-ios-samples, just to see how Xcode 6.1 works on them, and it ended up in the same forever waiting. What solutions I have tried so far: Deleting "Derived Data" in the Organizer, and re-open

Java 8u40 on OS X Yosemite

五迷三道 提交于 2019-11-27 06:20:15
问题 Since the update of Java 8u40 our OSX users have not been able to type anything into the application and the application also does not even gain focus. I have tried other Web Start examples and I have the same issue, so it isn’t just us. I went to http://docs.oracle.com/javase/tutorial/deployment/webstart/examplesIndex.html and launched both Web Start demo’s on that page. I can double-click in the fields and it appears it wants to rename or edit text but the caret doesn’t show up and typing