osx-lion

Trouble installing mod_mono on Mac OSX Lion

落花浮王杯 提交于 2019-12-23 02:20:14
问题 There is another question regarding installing mod_mono on OSX, but I'm going to assume that was before Lion came about, which had some breaking changes for developers (like python versions). I've followed the instructions in the INSTALL readme of mod_mono-2.10. No Avail. Exactly what I've done is this: tar xvfz mod_mono-2.10.tar.gz cd mod_mono-X.Y.Z ./configure --prefix=/usr make make install $ apachectl -t httpd: Syntax error on line 54 of /private/etc/apache2/httpd.conf: Syntax error on

Detect click on OS X menu bar?

一曲冷凌霜 提交于 2019-12-23 00:51:31
问题 I'm curious if there's a trick to detecting a click on the Menu Bar as a whole. I know I can detect a click on an NSStatusItem or NSMenu, but I am looking for events pertaining to the empty space of the Menu Bar. Looking through the documentation, it does not seem possible. However, I wanted to know if anyone had a workaround for this functionality? 回答1: You can install a local event monitor using NSEvent addLocalMonitorForEventsMatchingMask:handler: See the documentation located here. 来源:

SVN ignore problem in OS X Lion

风格不统一 提交于 2019-12-22 18:29:13
问题 Before installing Lion, when I tried to ignore something on my svn, I just typed the following command: svn propedit svn:ignore . This opened a temporary file for the current directory with the selected editor and I could write there my patterns, which where ignored by svn. After I installed Lion, when I type this command the following error appears: The document “svn-prop.tmp” could not be opened. The file doesn’t exist. Did anybody else met this error before? (I tried googling, but I didn't

Mac OS X Lion 10.7.2 Xcode 4.2 memory issues

北慕城南 提交于 2019-12-22 13:31:33
问题 I've got MacBook Pro 2011, 15" i7 2GHz 8GB Ram 1333 MHz OS X Lion 10.7.2 all updates installed released to this date. I have done everything what I can to minimize RAM consumpsion and the only problem I've got at this point is when I run Xcode. I had 4gigs of RAM, than bought 8 gigs and always 've got 10-30 MB of free memory after 3-5 minutes of Xcode running and PAGE INS are 300MB - 700MB. I tried to switch to 32-bit running mode but no change. Can anybody help me please? 回答1: Yes. One way

ImageIO hangs when referred inside an OSGI Application Mac OS X - Java 1.7

﹥>﹥吖頭↗ 提交于 2019-12-22 10:36:11
问题 I am using Java 1.7 on Mac OS X 10.7.5 . It hangs the moment execution touches any ImageIO API. import javax.imageio.ImageIO; import org.eclipse.equinox.app.IApplication; import org.eclipse.equinox.app.IApplicationContext; public class ImageMain implements IApplication { @Override public Object start(IApplicationContext context) throws Exception { ImageIO.getCacheDirectory(); return IApplication.EXIT_OK; } @Override public void stop() { // TODO Auto-generated method stub } } jstack output :

GDB 7.3.1 on OSX Lion

拈花ヽ惹草 提交于 2019-12-22 08:47:26
问题 I'm trying to use GDB (v 7.3.1) from macports to debug an executable compiled with g++ 4.7 (also from macports). However, I start the debugger, I get the following output: GNU gdb (GDB) 7.3.1 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This

PostgreSQL permissions issue after upgrading to OS X Lion

浪尽此生 提交于 2019-12-22 08:19:58
问题 After upgrading to Lion, I get the following error when trying to start up the Postgres server: pg_ctl: could not open PID file "/usr/local/var/postgres/postmaster.pid": Permission denied I also tried to re-run the initdb command, but ran into a similar problem: initdb: could not access directory "/usr/local/var/postgres": Permission denied If it matters, PostgreSQL was installed via Homebrew. Running brew info postgresql yields the expected results (version, summarized docs). 回答1: Well, it

Compiling SDL from source on a Mac running OS X 10.7 Lion

烈酒焚心 提交于 2019-12-22 05:37:13
问题 I've downloaded the SDL source SDL-1.2.14.zip from the libsdl website and gotten to the make step. When I ./configure , I have no issues. However, when I make , it gets what seems like a long way through the compilation process and dies with this output: /bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/video/SDL

Seeking accurately, as opposed to two seconds short, in AVPlayer

99封情书 提交于 2019-12-22 02:06:11
问题 I'm using AVPlayer in a Cocoa app, and I've implemented a command that jumps to the end of the video. The problem is, AVPlayer doesn't seek to where I told it to. For example, one of the videos I have is 4 minutes and 14 seconds long. When I seek to the end, AVPlayer seeks to 4 minutes and 12 seconds—two seconds short. If I then hit play, the player will play for two seconds, then reach the end. My first attempt was this: [self.player seekToTime:self.player.currentItem.duration]; I've

Seeking accurately, as opposed to two seconds short, in AVPlayer

牧云@^-^@ 提交于 2019-12-22 02:05:30
问题 I'm using AVPlayer in a Cocoa app, and I've implemented a command that jumps to the end of the video. The problem is, AVPlayer doesn't seek to where I told it to. For example, one of the videos I have is 4 minutes and 14 seconds long. When I seek to the end, AVPlayer seeks to 4 minutes and 12 seconds—two seconds short. If I then hit play, the player will play for two seconds, then reach the end. My first attempt was this: [self.player seekToTime:self.player.currentItem.duration]; I've