osx-mountain-lion

what base SDK level should I use?

旧巷老猫 提交于 2020-02-05 08:21:47
问题 I have apps listed on app store. Some of them are OS 10.6 compatiable. Now, I want the user of OS 10.8 getting benifit from the new API of NSUserNotification and still want to serve the user under OS 10.6 and OS 10.7 with basic functions. What base SDK should I use on project setting while producing my new upgrades? Or, should I use different targets? Thank you for your basic tutorials. I really don't know and never used it before. 回答1: Base SDK: 10.8 Mac OS X Deployment Target: 10.6 Build

what base SDK level should I use?

青春壹個敷衍的年華 提交于 2020-02-05 08:21:26
问题 I have apps listed on app store. Some of them are OS 10.6 compatiable. Now, I want the user of OS 10.8 getting benifit from the new API of NSUserNotification and still want to serve the user under OS 10.6 and OS 10.7 with basic functions. What base SDK should I use on project setting while producing my new upgrades? Or, should I use different targets? Thank you for your basic tutorials. I really don't know and never used it before. 回答1: Base SDK: 10.8 Mac OS X Deployment Target: 10.6 Build

problems with usetex in OSX 10.8

橙三吉。 提交于 2020-01-24 10:09:44
问题 I recently upgraded to OSX 10.8 (Mountain Lion) and my python install is now misbehaving if I try to use latex mark-up in my plot labels. The following code runs perfectly: plt.figure() plt.plot( rand(51), rand(51) ) plt.show() However, this does not: plt.rc( 'text', usetex=True ) plt.figure() plt.plot( rand(51), rand(51) ) plt.show() The errors I get back are: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/wx/_misc.py",

problems with usetex in OSX 10.8

*爱你&永不变心* 提交于 2020-01-24 10:09:18
问题 I recently upgraded to OSX 10.8 (Mountain Lion) and my python install is now misbehaving if I try to use latex mark-up in my plot labels. The following code runs perfectly: plt.figure() plt.plot( rand(51), rand(51) ) plt.show() However, this does not: plt.rc( 'text', usetex=True ) plt.figure() plt.plot( rand(51), rand(51) ) plt.show() The errors I get back are: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/wx/_misc.py",

autosavesInPlace causes New Document save to fail

无人久伴 提交于 2020-01-17 08:43:21
问题 I have a NSPersistentDocument based app which fails to save a new document when autosavesInPlace is set to return YES , return NO and the problem disappears. I create a new document Make some changes Save it , thus running NSSaveAsOperation , the name of the document and the URL changes and all appears to be well but the next save will throw a very descriptive NSPersistentStoreSaveError = 134030, // unclassified save error - something we depend on returned an error This only happens when the

Error importing MySQLdb in Python 2.7.2 on Mac OSx 10.8.1

走远了吗. 提交于 2020-01-17 04:26:05
问题 I recently upgraded to OSx Mountain Lion (10.8) and shortly after to 10.8.1. I was attempting to do an "import MySQLdb" and ran into the following errors: >>> import MySQLdb /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.8-intel.egg/_mysql.py:3: UserWarning: Module _mysql was already imported from /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.8-intel.egg/_mysql.pyc, but /Users/jlk/Software_Downloads/MySQL-python/MySQL-python-1.2.3 is being added to

Java ScriptEngineManager no longer works with Mountain Lion's AppleScript

China☆狼群 提交于 2020-01-12 14:33:13
问题 Ever since I upgraded to Mountain Lion, I can't run my AppleScript code through the Java ScriptEngineManager. The sample code found on Apple's page (link) returns null for the engine object. public static void main(String[] args) throws Throwable { String script = "say \"Hello from Java\""; ScriptEngineManager mgr = new ScriptEngineManager(); ScriptEngine engine = mgr.getEngineByName("AppleScript"); engine.eval(script); } Anybody know of any workarounds? 回答1: I got it working by adding a file

Special Characters in Google Calculator

你离开我真会死。 提交于 2020-01-04 12:14:53
问题 In a previous question I was told that Google passes UTF-8 encoded responses to queries. This solved a problem with non-breaking spaces (A0) being muddled after being passed by curl to my terminal. This was solved by piping the curl output to inconv and converting to UTF-8. However, even with this solution in place, I am still getting some strange output. Consider the following conversion of 2 m to feet: http://www.google.com/ig/calculator?hl=en&q=2%20m%20in%20feet This is the output I'm

NSTextView customizing double click selection

╄→尐↘猪︶ㄣ 提交于 2020-01-04 02:40:15
问题 If a NSTextView contains the following: SELECT someTable.someColumn FROM someTable And a user double-clicks someTable.someColumn , the entire thing gets selected (both sides of the period). In this specific case (a query editor), it would make more sense for either the someTable or the someColumn to be selected. I've tried looking around to see if I can figure out a way to customize the selection, but I have been unable to so far. At the moment what I'm thinking of doing is subclassing

How to get the “get info” pane in finder programmatically (Objective-c)?

♀尐吖头ヾ 提交于 2020-01-04 01:55:10
问题 we right-click a folder or file, and then we can choose "get info" option to show some info. I wonder whether we can do this through objective-c? 来源: https://stackoverflow.com/questions/18500983/how-to-get-the-get-info-pane-in-finder-programmatically-objective-c