osx-lion

Spurious calls to setValueAt with JTables in Java 7 on OS X Lion?

只愿长相守 提交于 2019-11-29 10:45:54
After upgrading to Lion, and Java 7, I am running into issues with JTables. When I use arrow keys to move the selection around, its calling setValueAt() with empty strings as the edit value. To test this, I created a simple JFrame with a table in it, and set the following class as its model. public class SpyModel extends AbstractTableModel { public int getColumnCount() { return 5; } public int getRowCount() { return 5; } public Object getValueAt(int rowIndex, int columnIndex) { return ""; } public boolean isCellEditable(int rowIndex, int columnIndex) { return true; } public void setValueAt

Lion (10.7) Not supporting Convert(1). Dylib error

二次信任 提交于 2019-11-29 10:38:54
问题 When trying to use convert(1), I get the following error: dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib Referenced from: /usr/local/bin/convert Reason: image not found Trace/BPT trap: 5 Any idea how I could fix it ? 回答1: I was getting this error as well–with a homebrew install of ImageMagick. Along the same lines as Pascal, I fixed it with Install XCode 4.1 (from the App Store) In Xcode, go to Xcode > Preferences... > Downloads

Handshake failure with “SSL error code -1/1/336032856” on OS X 10.7

为君一笑 提交于 2019-11-29 10:21:31
svn co "https://example.com/svn" svn: OPTIONS of 'https://example.com/svn': SSL handshake failed: SSL error code -1/1/336032856 (https://example.com) It works on Windows and Mac OX10.6, but it fails on Mac OSX10.7. I've tried with the default /usr/bin/svn (version 1.6.16 (r1073529)), and the one of fink /sw/bin/svn (version 1.6.17 (r1128011)) I installed all OSX10.7 updates. What can be the problem? ps: I use a private svn repository; " https://example.com/svn " is just an example for this post. Bert Huijben This question is answered in the Subversion FAQ. See *"When performing Subversion

Mac OSX Lion and Ruby - [FATAL] failed to allocate memory

只愿长相守 提交于 2019-11-29 09:50:08
I have serious problem with Ruby and OSX Lion - whenever I try to start Rails or even a rake tool I am getting this error: [FATAL] failed to allocate memory I tried recompilling ruby in different versions (1.9.2-p180, 1.9.2-p290, 1.9.2-head) and its always the same. However I noticed that I can remove some gems and then "rake" tool will work and only 'rails s' will die with that error. It seems like there is in fact not enough memory for this amount of gems I am using, but again this seems very weird - it works perfectly fine on Snow Leopard and even at my company on mac mini with Lion - the

Getting the full path of a TFENode in Lion

五迷三道 提交于 2019-11-29 07:47:44
I'm trying to get the full path of a TFENode in OSX Lion, but am unable to get a result using the old way (by converting to an FINode and getting the fullPath - the method [[FINode nodeWithFENode:myTFENode] fullPath] doesn't seem to work for Lion anymore. Is there a way to do this? From a TFENode, you can get an OpaqueNodeRef, and use that with FINode's nodeFromNodeRef: method. After that, you can get the NSURL to the item with FINode's previewItemURL method. 来源: https://stackoverflow.com/questions/8861503/getting-the-full-path-of-a-tfenode-in-lion

py2app TypeError: dyld_find() got an unexpected keyword argument 'loader'

荒凉一梦 提交于 2019-11-29 07:06:30
I'm having difficulty building my app using py2app. I can build it in alias mode without issue using this command: python3.4 setup.py py2app -A However when I try and build it using: python3.4 setup.py py2app I get the error message as per title of this post. From the research I've done I believe it's an issue with Pillow; however I need Pillow for this app. (Unless there's another module I can use to import images??). I've also tried cx_freeze without success. Any help or direction much appreciated. Full traceback as follows: Traceback (most recent call last): File "setup.py", line 19, in

AppleScript: Use Lion Fullscreen

最后都变了- 提交于 2019-11-29 03:14:12
问题 There doesn't seem to be any information on this in the official Apple documentation. How do you make an application use Lion's new fullscreen feature via AppleScript? 回答1: if you want to toggle between fullscreen and normal mode use this hint tell application "iTunes" activate tell application "System Events" to tell window "iTunes" of application process "iTunes" click (every button whose description contains "full screen") end tell end tell 回答2: Not only is it not documented, but the

Django 1.3.1 compilemessages. Error: sh: msgfmt: command not found

ぃ、小莉子 提交于 2019-11-29 03:04:34
./manage.py compilemessages throws this error: sh: msgfmt: command not found I am running Mac OS 10.7, and I can't find the download path for the msgfmt program. Is there any way to resolve this problem? Thanks in advance! [update] TLDR; as Dogukan commented: Mac OS Maverics brew install gettext; brew link gettext --force worked for me. [update] user Lajarre reported: as of today (March 2014), I had to do brew install msgpack . You need GNU gettext and gettext-tools. If you use fink, try: sudo fink install gettext-tools You may need to add /sw/bin/ to your PATH if it is not there yet. If you

Bundle update & install fail after OS X lion upgrade - Rails 3

匆匆过客 提交于 2019-11-29 01:54:35
I Just updated to OS X Lion, and now when I run bundle update and bundle install , they both fail for different reasons. Bundle Install gives me this error: Using friendly_id (3.2.1.1) Installing json (1.5.3) with native extensions /.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/installer.rb:483:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb checking for re.h... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary

Mac OS X Lion, scrollbars, and website usability

*爱你&永不变心* 提交于 2019-11-28 22:22:20
I have a number of overflowed divs that I use to display a lot of content in small space (like long lists, etc). Giving the divs the CSS rule of overflow: auto; always worked like a charm, giving the user scroll bars to indicate more content was available. This is kinda thrown out the window with Mac OS X Lion, which (as a default) hides the scroll bars unless you're actively scrolling. I like it when dealing with an application on my computer, because I think there are very strong visual clues that you can scroll to see more content. On webpage elements, it's a lot less clear, and I'm worried