osx-lion

Why does xcode 4.3.2 hang when archiving?

别等时光非礼了梦想. 提交于 2019-12-19 20:39:11
问题 When I attempt to archive a build, xcode hangs with the colorful spinny wheel of death. It used to work fine, but I can no longer browse the archive anymore unless I delete the archive files manually. I can build to a device fine without problems though. I deleted all content from the archives manually (by deleting the actual archive files) and the archive/organizer pane shows fine, because nothing is in it (because I deleted the archives). But when I attempt to archive again, it builds, then

Php-intl installation on XAMPP for Mac Lion 10.8

感情迁移 提交于 2019-12-19 11:18:11
问题 Hi folks i am trying to install intl library on xampp for mac. I have installed php 5.3, so i just copied intl.so file from the php 5.3 location to Xampp bin folder. After that i uncommented extension=intl.so and restarted the server. Still i dont see intl updated in the phpinfo() (Getting error Class Locale not found) 回答1: I just ran this in Terminal. sudo pecl install intl Then just add extension=intl.so to php.ini . 回答2: For me this worked (php 7.1, MAMP, macOS Mojave): Downloaded the intl

Run script in background?

*爱你&永不变心* 提交于 2019-12-19 10:28:13
问题 Simple question: Is there a way to run a script in the background with out terminal running? More detail and background: I had an app that read an apps .log file and puled information from it, then provide information and statistics from the information in the log. An update to the app changed the way the .log file was written and delete information and duplicates the log in a manner that i have been unable to predict. the app that was designed to interface with the log was not coded to check

Failed to build PIL on Mac OS X 10.7 Lion

做~自己de王妃 提交于 2019-12-19 10:26:05
问题 I am tying to build PIL 1.1.7 on Mac OS X 10.7, I am getting this error: running build running build_py running build_ext --- using frameworks at /System/Library/Frameworks building '_imaging' extension gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -arch ppc -arch i386 -g -O2 -DNDEBUG -g -O3 -DHAVE_LIBZ -I/System/Library/Frameworks/Tcl.framework/Headers -I/System/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/opt/local/include -I/Library/Frameworks/Python.framework/Versions/2.6

No suitable driver found for jdbc:mysql://localhost/

╄→尐↘猪︶ㄣ 提交于 2019-12-19 09:56:37
问题 I am trying to port my code from linux to mac OSX LION. The following method works on linux just fine. Connection getConnection() throws SQLException{ String url = "jdbc:mysql://localhost/"; return DriverManager.getConnection(url, "root", "mypassword"); } But it's not working on my mac. I am using XAMMP so the path to my database is /Applications/XAMPP/xamppfiles/bin/mysql . The error I get reads Exception in thread "main" java.sql.SQLException: No suitable driver found for jdbc:mysql:/

NSWindowController's window released immediately

别说谁变了你拦得住时间么 提交于 2019-12-19 09:26:49
问题 I'm trying to open a window using a NSWindowController in my app delegate. I created a basic NSWindowController with an associated NIB and try to show the window that way: @implementation MyAppDelegate - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { // Show the main window from a separate nib MyWindowController * theWindowController = [[MyWindowController alloc] initWithWindowNibName:@"MyWindowController"]; [theWindowController showWindow:self]; } @end When I launch

I'm having some trouble with C++11 in Xcode

牧云@^-^@ 提交于 2019-12-19 07:58:28
问题 I'm a Mac OS X Lion user who uses Xcode for C++, and it appears that no updates are available for Xcode. I do not appear to be able to compile C++11-exclusive code, but for whatever reason, I thought Apple had gotten C++11 pretty much implemented. And yes, I do have support for Command Line Tools. Then again, that might just be me. If so, is there any sort of IDE that supports C++11, or any way to upgrade? 回答1: I use Xcode and set the following settings: C++ language dialect : C++11 or GNU+

Encoding NSViewController for Lion's user interface resume feature

二次信任 提交于 2019-12-19 01:41:21
问题 Any idea what are the best practices for archiving an NSViewController inside a window for resume (user interface preservation) purposes? I've tried archiving it in the window controller's encodeRestorableStateWithCoder: methods only to find out that the view controller doesn't get unarchived when restoreStateWithCoder: is called. // NSWindowController subclass -(void)encodeRestorableStateWithCoder:(NSCoder *)coder { [super encodeRestorableStateWithCoder:coder]; NSViewController*

Encoding NSViewController for Lion's user interface resume feature

ε祈祈猫儿з 提交于 2019-12-19 01:38:34
问题 Any idea what are the best practices for archiving an NSViewController inside a window for resume (user interface preservation) purposes? I've tried archiving it in the window controller's encodeRestorableStateWithCoder: methods only to find out that the view controller doesn't get unarchived when restoreStateWithCoder: is called. // NSWindowController subclass -(void)encodeRestorableStateWithCoder:(NSCoder *)coder { [super encodeRestorableStateWithCoder:coder]; NSViewController*

Mac OS X Lion: What is the max path length?

纵饮孤独 提交于 2019-12-18 14:55:53
问题 I am having trouble finding this information, and trial and error is telling me that the value is very high. So I figured I ask the community to see if anyone knows and can point me to a apple page that confirms the length for Lion. All I know is it is larger that Snow Leopard. 回答1: The limits depend on the used filesystem - OSX uses HFS Plus by default... The only official documents I can point to are the HFS Plus spec which document the limit of 255 for filename length. Wikipedia hints that