osx-lion

Is filemerge still available after Xcode 4.3 installation?

对着背影说爱祢 提交于 2019-12-02 17:53:19
Where can I find filemerge after Xcode is upgraded to 4.3? Kurt Revis In Xcode, choose this menu item: Xcode -> Open Developer Tool -> FileMerge. The app itself is here: /Applications/Xcode.app/Contents/Applications/FileMerge.app On the command line, use opendiff . You must have the command line tools installed -- go to Xcode, Preferences, Downloads tab, and install Command Line Tools if you haven't already. Run this in your terminal: sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer 来源: https://stackoverflow.com/questions/9562761/is-filemerge-still-available-after

Error: “No identities are available for signing” Xcode 4.3.1

自闭症网瘾萝莉.ら 提交于 2019-12-02 17:03:09
I upgraded my OSX from Snow Leopard to Lion and I downloaded Xcode 4.3.1 Now when I try to validate and publish my app I get the first screenshot. If I click on Download Identifier button I get the second screenshot. Any suggest? The certificates you created for signing your application are only valid on the machine (+ OS) which you used to create them. They can be migrated to another machine but if you already updated without doing so, I recon that this is not an option anymore. I also don't know what the "Import Developer Profile" button does (I guess it's fairly new) but you could try that

How to start Postgres server? [closed]

谁都会走 提交于 2019-12-02 16:43:56
Ive actually had this problem for a while but I've finally decided to take it on. Postgres was initially installed using Brew. After my upgrade to OSX 10.8.2 to receive a psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? error when I typed the $ psql command. I see the following processes: $ ps auxw | grep post Tulsa 59222 0.0 0.2 2483256 14808 ?? Ss Thu03PM 0:02.61 /System/Library/PrivateFrameworks/DiskImages.framework/Resources/diskimages-helper -uuid 470DA5CC-1602-4D69-855F

NSPopover transiency when popover is in status bar

那年仲夏 提交于 2019-12-02 16:22:15
I'm making an app which lives in status bar. When status item is clicked, NSPopover pops up. It looks like this: Here's the problem: I want it to be "transient", that is if I click anywhere outside of the popover, it will close. And while NSPopoverBehaviorTransient works fine when popover is in a window, it doesn't work when it's in status bar. How can I implement such behavior myself? radex It turned out to be easy: - (IBAction)openPopover:(id)sender { // (open popover) if(popoverTransiencyMonitor == nil) { popoverTransiencyMonitor = [NSEvent addGlobalMonitorForEventsMatchingMask

How do I timestamp every ping result?

大憨熊 提交于 2019-12-02 15:42:38
Ping returns this by default: 64 bytes from 203.173.50.132: icmp_seq=0 ttl=244 time=57.746 ms Is there some way I can get it to add the timestamp? For example, Mon 21 May 2012 15:15:37 EST | 64 bytes from 203.173.50.132: icmp_seq=0 ttl=244 time=57.746 ms I'm on OS X v10.7 (Lion) which seems to have some BSD version of ping. richk I could not redirect the Perl based solution to a file for some reason so I kept searching and found a bash only way to do this: ping www.google.fr | while read pong; do echo "$(date): $pong"; done Wed Jun 26 13:09:23 CEST 2013: PING www.google.fr (173.194.40.56) 56

Is possible to use Mac OS X XPC like IPC to exchange messages between processes? How?

烂漫一生 提交于 2019-12-02 14:43:41
According to Apple, the new XPC Services API, introduced in Lion, provides a lightweight mechanism for basic interprocess communication integrated with Grand Central Dispatch (GCD) and launchd. It seems possible to use this API as a kind of IPC, like the POSIX IPC, however, I cannot find how to do it. I am trying to communicate two processes using the XPC API so I can pass messages between them but I always get a "XPC connection invalid" error in the server side. I don't want an XPC Service, I just want to exchange messages using a client-server architecture. I am using two BSD-like processes,

Location of the mongodb database on mac

a 夏天 提交于 2019-12-02 13:50:42
I am kind of new to mac as well as mongodb. I have a weird doubt, accessing the database created using mongodb on mac? I know, in windows there is a folder called c:\data\db, where my database files are stored. How and where in mac, the database is stored. I remember doing something like sudo mkdir -p /data/db sudo chown `id -u` /data/db to create such a folder on mac, but I didn't find any database file in this folder, though i created a database. Where are the database files saved on mac? Any help would be really appreciated. The default data directory for MongoDB is /data/db . This can be

Install MatPlotLib 1.2.x on OS X Lion 10.7.4 and Python 3.2.2

拥有回忆 提交于 2019-12-02 12:23:04
问题 I asked a question a couple of days ago regarding installing numpy on the same system. Thankfully, I managed to solve that one myself but unfortunately I am now stuck trying to install matplotlib. I first of all tried the current distributed version but had no luck with that so I thought i would download the git repository and try that. I have got this far: changed the make.osx file so that it will work in Python 3: import urllib -> import urllib.request urllib.urlretrieve() -> urllib.request

Restoring from versions browser on OSX lion not working… ideas?

人走茶凉 提交于 2019-12-02 11:10:42
I'm trying to restore a document based application from a previous version on Lion. When I select "restore version", the text view doesn't reflect the changes. However, if I close the application and reopen, the changes are there. I'm using the file wrapper variants of NSDocument, so how can I make the text view's text storage reflect the version that's selected immediately? Am I missing something? I had a similar problem recently (my interface didn't seem to update). Are you updating your interface in windowControllerDidLoadNib: or awakeFromNib ? When a document is reverted (revert to last

'sandboxd: deny file-write-create' when writing to app's own bundle

若如初见. 提交于 2019-12-02 10:23:07
I've written a program in the Mac App store which displays some graphics. Occasionally it updates these off the internet. As with most folks, I'm having to Sandbox my app now. Almost everything is working, but when updating it saves a file in my app's own bundle and fails with 'sandboxd: deny file-write-create' I just use fopen(..., "wb") The path passed into fopen is: /Users/MyUser/Library/Developer/Xcode/DerivedData/MyApp-czuwveatgjffaggwqjdqpobjqqop/Build/Products/Debug/My.app/Contents/Resources/the_file.foo The path is created using: CFBundleRef bundle = CFBundleGetMainBundle(); CFURLRef