osx-lion

Java signed applet certificate revoked only on mac OSX10.7 (Lion)

故事扮演 提交于 2019-12-04 11:53:47
I have a signed applet that works fine on windows, Mac <= 10.6, and linux. However, on OSX lion, the signing certificate is revoked. Here is the security debug info from the java console: security: Loading certificates from Deployment session certificate store security: Loaded certificates from Deployment session certificate store security: Loading Root CA certificates from from keychain security: Loaded Root CA certificates from from keychain security: Validate the certificate chain using CertPath API security: Obtain certificate collection in Root CA certificate store security: Obtain

Any NSWindowRestoration examples?

ぃ、小莉子 提交于 2019-12-04 11:45:38
I'm having some trouble implementing NSWindowRestoration (in 10.7 Lion). I'm not getting the protocol notifications. Is there an example app with this implemented somewhere? I cannot find one on the Apple Developer site. Thanks! Edit: The question marked as answer is helpful, but the problem in my case was that I was using a menubar-only application. I guess window restoration doesn't work with dockless apps yet. Snap! The class method + (void)restoreWindowWithIdentifier:(NSString *)identifier state:(NSCoder *)state completionHandler:(void (^)(NSWindow *, NSError *))completionHandler as

How to not get special characters in place of meta key combinations for VIM on OS X

依然范特西╮ 提交于 2019-12-04 11:19:49
问题 On OS X, at any program, when I type option-p I get π , option-P I get ∏ and there's a bunch of alt / option bindings that just return greek and other special characters. Is there a way to disable that? Currently I'm using the Auto Pairs VIM plugin and it has the following default mappings: <M-p> : Toggle Autopairs (g:AutoPairsShortcutToggle) <M-e> : Fast Wrap (g:AutoPairsShortcutFastWrap) <M-n> : Jump to next closed pair (g:AutoPairsShortcutJump) <M-b> : BackInsert (g

XCode 4.2.1 Crashes on Lion 10.7.2 on Launch

倖福魔咒の 提交于 2019-12-04 10:43:53
This week I bought my first Mac in about 10 years (yeah!). It's a used Mac Pro (2x2GHz Dual-Core Xeon with 2GB RAM). It has a fresh install of Mac OS X Lion 10.7.2. I've only installed OmniOutlner Pro, Textmate, and Ruby RVM. I've also downloaded and installed Xcode 4.2.1 from the App Store. At first, Xcode worked fine (only launched to see if it worked). Then, the next day I launched Xcode to start using it and it crashed immediately upon launch. Since then, I've tried many things to try to correct the problem: rebooting, reinstalling, redownloading and reinstalling, deleting and reinstalling

Right click shortcut for Mac Lion OS?

随声附和 提交于 2019-12-04 10:07:18
问题 How to perform right click through Keyboard in Mac Lion OS? Since I am keyboard loving person, I don't like all the time use mouse for right click. I found much of the shortcuts of Mac through googling, but I didn't found this one. 回答1: Finally I got my answer: Go to System Preference --> Universal Access --> Mouse --> Enable Mouse Keys (ON) This will Enable you Numpad keys. Press Ctrl + 5 for Right Click. 回答2: Fn-Ctrl-I on laptop thanks to this post: https://discussions.apple.com/thread

InetAddress.getLocalHost() resolution on OSX Lion when offline

这一生的挚爱 提交于 2019-12-04 09:29:59
Is anyone having issues with Java's InetAddress.getLocalHost() resolution in Java with OSX Lion when working offline (i.e. not connected to internet)? It would appear that localhost:127.0.0.1 is not resolved at all: Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at java.net.InetAddress.getLocalHost(InetAddress.java:1356) Nothing special in my /etc/hosts: ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost I suspect

View based NSTableView EXC_BAD_ACCESS on Lion with ARC

别等时光非礼了梦想. 提交于 2019-12-04 09:08:45
This is weird. I've got a super simple project to learn NSTableView, and it's set up in my nib, set as a View-based tableView. I've also set the dataSource and delegate to my controller obejct. When I do this, however, and run, I get an EXC_BAD_ACCESS, with the trace starting in my main function and the rest of the stack is internal to Cocoa (so not my code). There's really nothing fancy going on, other than this project is using ARC (it's a new project, so this was the default). I also tried using the Analyzer to make sure I wasn't improperly doing memory managment anywhere and there were no

Fetch Relationship Objects

百般思念 提交于 2019-12-04 08:42:28
问题 CoreData beginner I have a simple problem with CoreData. My model has two entities, now called A and B. Entity A has a to many relationship of B entities, which has a inverse relationship to entity A. I'm retrieving entities A with this code: NSManagedObjectContext *context = [self managedObjectContext]; NSEntityDescription *entity = [NSEntityDescription entityForName:@"A" inManagedObjectContext:context]; NSFetchRequest *request = [[NSFetchRequest alloc] init]; [request setEntity:entity];

sudo required for easy_install pip in OS X Lion?

冷暖自知 提交于 2019-12-04 06:49:24
I'm coming from Snow Leopard at work to a Lion installation at home. I do NOT remember having to: sudo easy_install pip Is that required for Lion? I got errors until I did that, and pip ended up here: [ some@computer ] ~ $ which pip /usr/local/bin//pip Does this mean that I'm going to have to sudo pip install other packages? e.g.: sudo pip install virtualenv sudo pip install virtualenvwrapper I should also note that I'm running XCode 4.3 with the new separate install of the command line tools. So I do NOT have a /Developer path right now on my OS X Lion volume. Yes. Generally you sudo to use

How to use libxml2 with python on macOs?

拜拜、爱过 提交于 2019-12-04 06:09:01
I'm on OSX Lion and I have libxml2 installed (by default) and I have python installed (by default) but they don't talk to one another. What's the simplest way to make this work on Lion? $ python -c "import libxml2" Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named libxml2 tkone Visit ftp://xmlsoft.org/libxml2/python/ and ensure this is the latest version Download it unpack it open a term and cd to that directory type sudo python setup.py install ls /Library/Python/2.7/site-packages/ and you should see a bunch of libxml2 files try the test