osx-mountain-lion

How to build an app that runs on Mac OS 10.6 and supports the NSUserNotificationCenter?

不羁岁月 提交于 2019-12-03 17:17:31
问题 I did a lot of research but I just couldn't find what I'm looking for: Currently, both the Deployment Target and Base SDK of my app is set to 10.8 , and it runs perfectly. I can properly post Notifications to Mountain Lions new Notification Center! To build an app that also runs under Mac OS 10.6 , I've set the Deployment Target to 10.6 and built it (as recommended in this thread). Unfortunately, the app crashes on 10.6, and the crash report is detailing that the NSUserNotificationCenter

Only show notification if user is at computer

自古美人都是妖i 提交于 2019-12-03 16:05:05
Whats the best way to detect if a user is currently at their computer, ie using it in some way. We have an application that should only issue notifications (banner notifications with a close button) if the user is at their computer. For example, imagine a stock trading application that alerts the user to various time sensitive information that might be relevant for only a few minutes. If the user is away from their computer, they don't want to find 20 un-actioned alerts to dismiss. JanT Technicaly I don't know how to watch for inactivity but I think you could use timeout for notifications to

What do setting do I use for xcode-select -switch?

北慕城南 提交于 2019-12-03 15:45:48
I'm trying to install octave on macos mountain lion via the following: sudo port install octave However, the result of this command is always the following: Error: Error: No valid Xcode installation is properly selected. Error: Please use xcode-select to select an Xcode installation: Error: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer # version 4.4 Error: I've tried the suggested sudo xcode-select -switch command to no avail. The same error always occurs. Any ideas how to resolve this problem? Did you install xcode or just the command line tools? I installed just the

Installing PyGame onto Mountain Lion OS

喜夏-厌秋 提交于 2019-12-03 15:35:20
Okay, so I've completely given up. I've tried about a thousand different walkthroughs to solve my problem, on every website I can find, but I either get stuck and no one knows the answer, or they just don't work. So has anyone got an answer to installing PyGame onto Mountain Lion that they know 100% works and they can walk me through it as if I'm 6 years old? I just want to run PyGame and this is driving me insane. Cheers. BenDundee Ok, I'm running OSX 10.8.3 (Python 2.7.3), and I got pygame (1.9.1) up and running in about 15 minutes. Here's what I did. I brewed my Python a long time ago, so I

Qt 5 cannot deploy on SnowLeopard

北城以北 提交于 2019-12-03 15:23:11
I have an issue where my app doesn't run on 10.6 Snow Leopard. I compile with these parameters: qmake LSPRO.pro -r -spec macx-clang CONFIG+=release CONFIG+=x86_64 in my Pro file, I have these elements: TEMPLATE = app HEADERS = \ mainwindow.h \ app_mediamanager.h \ api.h \ tool_htmleditor.h \ tool_videoencoder.h \ tool_thumbnaileditor.h SOURCES = \ main.cpp \ mainwindow.cpp \ app_mediamanager.cpp \ api.cpp \ tool_htmleditor.cpp \ tool_videoencoder.cpp \ tool_thumbnaileditor.cpp QT += network webkitwidgets widgets concurrent sql QMAKE_CXXFLAGS_X86_64 += -mmacosx-version-min=10.6 QMAKE_MACOSX

Linking error for inline functions

本秂侑毒 提交于 2019-12-03 14:55:11
问题 I am trying to compile the sample code "SonofGrab" using XCode 4.5.1 on OS X 10.8. One function is defined like this in controller.m inline uint32_t ChangeBits(uint32_t currentBits, uint32_t flagsToChange, BOOL setFlags); This leads to this error message: Undefined symbols for architecture x86_64: "_ChangeBits", referenced from: -[Controller awakeFromNib] in Controller.o [...] ld: symbol(s) not found for architecture x86_64 Removing the inlining of the function ChangeBits solves the problem,

Homebrew: brew doctor throwing up a lot of errors, how can I fix them? [closed]

我们两清 提交于 2019-12-03 13:00:21
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I installed homebrew a long time ago and I don't use it that much, but I was thinking of starting to get back into it as it's a very useful and easy to use package installer. Anyway, I ran the brew doctor and got a whole host of warnings which I'm not sure how to fix! I'm especially scared of deleting .dylib,

Install ree-1.8.7 with RVM on Mountain Lion [duplicate]

你说的曾经没有我的故事 提交于 2019-12-03 12:59:59
This question already has an answer here: Mountain Lion rvm install 1.8.7 x11 error 5 answers I had a fresh install of Mountain Lion and installed the Xcode Command Line Tools , . I was able to get homebrew running and installed RVM . Unfortunately, I can't get RVM to install ree-1.8.7-head . It fails when compiling. I thought it was related to X11, so I installed XQuartz . Still no joy. Then I went ahead and installed the full Xcode from the app store . Still no joy. Anyone gotten this going on a fresh Mountain Lion install? From the bottom of the .rvm/log/ree-1.8.7-head/make.log : Find Tcl

Mac OS 10.8 supports GLSL 3.30?

元气小坏坏 提交于 2019-12-03 11:43:10
问题 I'm following the arcsynthesis tutorials on OpenGL 3.3 using 10.8 Mountain Lion and when building the project it compiles and runs the shaders using GLSL version 3.30, however even in the core profile on Mac OS 10.8 I shouldn't have GLSL 3.30 support - only 1.50 (as highlighted in the picture) Is anybody able to explain how I have managed to achieve this black magic? 回答1: OS X 10.8 still only support OpenGL 3.2, but with some 3.3 features such as specifying attribute location (#extension GL

rvm can no longer install 1.8.7-p352 on Mac OS X Mountain Lion

南楼画角 提交于 2019-12-03 11:40:45
I upgraded rvm to 1.15.8, then went back down to 1.15.7 after having some problems in zsh. After downgrading, my Ruby 1.9+ versions went back in fine, but 1.8.7 won't install again. There are two errors that are occurring: Error running 'patch -F 25 -p1 -N -f <"/Users/me/.rvm/patches/ruby/1.8.7/stdout-rouge-fix.patch"', please read /Users/me/.rvm/log/ruby-1.8.7-p352/patch.apply.stdout-rouge-fix.log The contents of that file are: [2012-09-11 01:05:59] patch -F 25 -p1 -N -f <"/Users/me/.rvm/patches/ruby/1.8.7/stdout-rouge-fix.patch" patching file lib/mkmf.rb Hunk #1 FAILED at 201. 1 out of 1