Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable.

2011-09-09 Thread Andreas Mayer
Am 10.09.2011 um 06:21 schrieb Ken Thomases: > So, it is apparently intentional that setIgnoresMouseEvents:NO will make a > transparent window non-transparent to mouse events. I recognize that this > seems to be a change in Lion vs. Snow Leopard, but the Lion behavior seems to > restore intend

Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable.

2011-09-09 Thread Ken Thomases
On Sep 9, 2011, at 10:43 PM, Andreas Mayer wrote: > While doing some additional testing before writing a bug report, I noticed > that Apple's "RoundTransparentWindow" sample code did work as expected! > Turns out that setIgnoresMouseEvents:NO will do the actual breaking. > Bug ID# 10104405 > >

Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable.

2011-09-09 Thread Andreas Mayer
Follow-Up: While doing some additional testing before writing a bug report, I noticed that Apple's "RoundTransparentWindow" sample code did work as expected! Turns out that setIgnoresMouseEvents:NO will do the actual breaking. Thus: Bug ID# 10104405 Summary: Sending setIgnoresMouseEvents:NO

Re: Changing default file <-> application association

2011-09-09 Thread Jerry Krinock
Abdul, I don't know what you mean by "Mac OS X refused to change the association". I presume that your V0 and V1 have different bundle identifiers; otherwise there's probably no difference between the two as far as Mac OS X is concerned. Inexplicable problems sometimes occur with document type

Re: Locking an NSDocument

2011-09-09 Thread Kyle Sluder
On Fri, Sep 9, 2011 at 4:34 PM, Quincey Morris wrote: > 1. The "Locked" attribute belongs to the user, and is not yours (the > developer, the application, whichever) to manipulate, even with the best of > intentions. Surely, when an old-file-format document receives an editing > change in the Lion

Re: Locking an NSDocument

2011-09-09 Thread Quincey Morris
On Sep 9, 2011, at 15:05 , Kyle Sluder wrote: > I'm trying to force a document to open as locked. The use case is for > upgrading documents from our previous file format. In the past, if the > user tried to open an old file, we'd upgrade the document, place the > new version alongside the old vers

Locking an NSDocument

2011-09-09 Thread Kyle Sluder
Hi all, If you adopt the new +autosavesInPlace feature on Lion, documents that haven't been opened in a while will get a "Locked" message in the titlebar, which the user can override by clicking and choosing "Unlock," or by attempting to make a change to the document and choosing "Unlock" from the

Re: NSWindow title bar view height

2011-09-09 Thread Torsten Curdt
> I have never seen a non-hackish way to tweak the title bar in such a way, > unfortunately. There are some methods to access and adjust the standard > buttons, but the layout and drawing of the title bar are done by > undocumented internal classes. > (If you want to see real hackish, you should lo

Re: NSOutlineView and -reloadDataForRowIndexes:columnIndexes:

2011-09-09 Thread Corbin Dunn
Yes; for a cell based tableview all it does is invalidate the row/column pairs. For view based, it drops the view and queries it again. corbin On Sep 8, 2011, at 12:12 PM, Sebastien Boisvert wrote: > Does -reloadDataForRowIndexes:columnIndexes: work on NSOutlineView? I'm > trying to use this t

Re: NSWindow title bar view height

2011-09-09 Thread Jens Alfke
On Sep 9, 2011, at 11:41 AM, Torsten Curdt wrote: > I am wondering what could be the best way of creating a NSWindow that > has a bigger title bar - similar to the AppStore app or iCal (to add > some other NSViews). A project I found doing just that feels a little > hack'ish I have never seen a

Re: Set a view's delegate using IB

2011-09-09 Thread Jens Alfke
On Sep 9, 2011, at 1:41 PM, Matt Neuburg wrote: > I don't see why. On iOS this is so common that it is in fact built into many > of Apple's own included project templates. m. I think you’re both right. A UIViewController is not the same thing as an NSViewController. —Jens_

Re: NSURLConnection: "Greedy Memory Eater" and Error 303

2011-09-09 Thread Jens Alfke
On Sep 9, 2011, at 9:10 AM, Andreas Grosam wrote: > One other thing is, using Instruments makes the scenario worse. When > Instruments is connected, the app crashes much sooner due to memory problems. > So, I support my observations on logs, too. That sounds suspicious. You may have memory err

Re: NSURLConnection: "Greedy Memory Eater" and Error 303

2011-09-09 Thread Jens Alfke
On Sep 9, 2011, at 6:54 AM, Don Quixote de la Mancha wrote: > I don't know how to fix NSURLConnection, but an alternative would be > to use the source to some other HTTP client. By having the source > code, you would have full control over the buffering. > > For example, libcurl is available un

Re: NSURLConnection: "Greedy Memory Eater" and Error 303

2011-09-09 Thread Jens Alfke
On Sep 9, 2011, at 4:06 AM, Andreas Grosam wrote: > I'm trying to use a NSURLConnection to download a large data file (>10 MB) > from a web service to the iPhone. Currently, testing on iOS 4.2.1, on a > device. The connection is established over WIFI. > > The problem I get with NSURLConnection

Re: Set a view's delegate using IB

2011-09-09 Thread Matt Neuburg
On Wed, 07 Sep 2011 14:12:26 -0700, Quincey Morris said: > There's something code-smelly about putting a view controller ... in a nib > file at all. I don't see why. On iOS this is so common that it is in fact built into many of Apple's own included project templates. m. -- matt neuburg, phd

Re: nonatomic vs atomic assign/retain

2011-09-09 Thread Matt Neuburg
On Wed, 07 Sep 2011 13:06:28 -0500, glenn andreas said: > >> Anyway. But I am curious - can you provide an example where you >> modified an outlet? > >On iOS, a common technique to make complex table view cells is to put them in >their own nib files, have a table view controller have: > >@propert

Re: NSBrowser column titles disappear when scrolled [SOLVED]

2011-09-09 Thread Bill Cheeseman
On Sep 9, 2011, at 4:03 PM, Matt Neuburg wrote: > I do hope you're filing bugs on all of this! m. > > On Tue, 06 Sep 2011 06:30:33 -0400, Bill Cheeseman > said: >> >> The solution is to set the "Titled" checkbox in Interface Builder instead of >> calling -setTitled: in -awakeFromNib. Surely

Re: NSBrowser column titles disappear when scrolled [SOLVED]

2011-09-09 Thread Matt Neuburg
I do hope you're filing bugs on all of this! m. On Tue, 06 Sep 2011 06:30:33 -0400, Bill Cheeseman said: > >The solution is to set the "Titled" checkbox in Interface Builder instead of >calling -setTitled: in -awakeFromNib. Surely this is a bug in NSBrowser, and >it must have been around since

Re: How to write song tags with iTunes and Scripting Bridge

2011-09-09 Thread Matt Neuburg
On Mon, 05 Sep 2011 17:44:35 +0200, David Dengg said: >Hello list, > >I have all the songs from iTunes as iTunesFileTracks (via Scripting Bridge) > >Is there a preferred way to write tags back into the tracks? Should I use >apple events directly? You *are* "using apple events directly". (Sor

Re: How to write song tags with iTunes and Scripting Bridge

2011-09-09 Thread Matt Neuburg
On Mon, 05 Sep 2011 17:44:35 +0200, David Dengg said: >Hello list, > >I have all the songs from iTunes as iTunesFileTracks (via Scripting Bridge). I >want to write new tag information back into the tracks. I can do "song.name = >newSongTitle;" and that works most of the time. Sometimes it fails.

Re: Introductions to OOP? [was: Re: Large over 100K pixel high ruler scroll view]

2011-09-09 Thread Matt Neuburg
On Fri, 02 Sep 2011 10:04:54 -0700, Jens Alfke said: > >On Sep 1, 2011, at 9:26 PM, Julie Porter wrote: > >> Again I am impressed with the help I received here. Hopefully others will >> be able to read these threads and learn from the experience of others. > >Julie: You’re welcome! > >Gang: One

NSWindow title bar view height

2011-09-09 Thread Torsten Curdt
I am wondering what could be the best way of creating a NSWindow that has a bigger title bar - similar to the AppStore app or iCal (to add some other NSViews). A project I found doing just that feels a little hack'ish https://github.com/indragiek/INAppStoreWindow Is there a better way? cheers,

Re: Custom universal types, but outside an application

2011-09-09 Thread Lee Ann Rucker
On Sep 9, 2011, at 2:20 AM, dvlc...@gmail.com wrote: > Lee Ann Rucker écrivait: > >> When you create the bundle, set NSFileExtensionHidden on it. > > OK, so IIUYC, this implicitely means that you need to do this for > every such directory. In other words, there is no way to specify that a > c

Changing default file <-> application association

2011-09-09 Thread Abdul Sowayan
Hi folks, I have an application that we wrong. There is an older version of the application that I will call V0, and a newer version of the application that I will call V1. I have both V0 and V1 installed on my computer(s) (Mac OS X 10.6 and 10.7). Both V0 and V1 generate application specific doc

Re: NSURLConnection: "Greedy Memory Eater" and Error 303

2011-09-09 Thread Andreas Grosam
On Sep 9, 2011, at 6:10 PM, Andreas Grosam wrote: > > I already did this: I meant: - (NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse { return nil; } the infamous Copy and Paste error :) _

Re: NSURLConnection: "Greedy Memory Eater" and Error 303

2011-09-09 Thread Andreas Grosam
On Sep 9, 2011, at 4:15 PM, glenn andreas wrote: > > On Sep 9, 2011, at 6:06 AM, Andreas Grosam wrote: > >> Dir Members, >> >> I'm trying to use a NSURLConnection to download a large data file (>10 MB) >> from a web service to the iPhone. Currently, testing on iOS 4.2.1, on a >> device. The

Re: NSURLConnection: "Greedy Memory Eater" and Error 303

2011-09-09 Thread Andreas Grosam
On Sep 9, 2011, at 3:59 PM, David Duncan wrote: > On Sep 9, 2011, at 4:06 AM, Andreas Grosam wrote: > >> The problem I get with NSURLConnection is, that it internally uses a lot >> (really a lot) memory for its data buffers. It seems, the connection reads >> as much data as it can from the net

Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable.

2011-09-09 Thread Bill Cheeseman
On Sep 9, 2011, at 11:02 AM, Andreas Mayer wrote: > Make Applidude active and click in one of the corners, outside the gray area. > You are still able to move the window. > > That's the bug we are talking about. The click should fall through in > transparent areas of the window. I see what y

Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable.

2011-09-09 Thread Andreas Mayer
Am 09.09.2011 um 11:52 schrieb Bill Cheeseman: > My clickthrough application still works on 10.7.1. Making a window completely ignore mouse clicks still works. But try this: Make Applidude active and click in one of the corners, outside the gray area. You are still able to move the window. T

Re: NSURLConnection: "Greedy Memory Eater" and Error 303

2011-09-09 Thread glenn andreas
On Sep 9, 2011, at 6:06 AM, Andreas Grosam wrote: > Dir Members, > > I'm trying to use a NSURLConnection to download a large data file (>10 MB) > from a web service to the iPhone. Currently, testing on iOS 4.2.1, on a > device. The connection is established over WIFI. > > The problem I get wi

Re: NSURLConnection: "Greedy Memory Eater" and Error 303

2011-09-09 Thread David Duncan
On Sep 9, 2011, at 4:06 AM, Andreas Grosam wrote: > The problem I get with NSURLConnection is, that it internally uses a lot > (really a lot) memory for its data buffers. It seems, the connection reads as > much data as it can from the network and a tries to safe it in internal > buffers, no ma

Re: NSURLConnection: "Greedy Memory Eater" and Error 303

2011-09-09 Thread Don Quixote de la Mancha
On Fri, Sep 9, 2011 at 4:06 AM, Andreas Grosam wrote: > I'm trying to use a NSURLConnection to download a large data file (>10 MB) > from a web service to the iPhone. Currently, testing on iOS 4.2.1, on a > device. The connection is established over WIFI. > > The problem I get with NSURLConnecti

NSURLConnection: "Greedy Memory Eater" and Error 303

2011-09-09 Thread Andreas Grosam
Dir Members, I'm trying to use a NSURLConnection to download a large data file (>10 MB) from a web service to the iPhone. Currently, testing on iOS 4.2.1, on a device. The connection is established over WIFI. The problem I get with NSURLConnection is, that it internally uses a lot (really a lo

Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable.

2011-09-09 Thread Bill Cheeseman
On Sep 9, 2011, at 12:41 AM, Andreas Mayer wrote: > Am 05.08.2011 um 22:01 schrieb R R Hornback: > > I just found this message while searching for a solution to the same problem. > >> With OS X Lion, even when the window background is transparent, the window >> still receives the mouse events.

Re: Custom universal types, but outside an application

2011-09-09 Thread dvlchat
Lee Ann Rucker écrivait: > When you create the bundle, set NSFileExtensionHidden on it. OK, so IIUYC, this implicitely means that you need to do this for every such directory. In other words, there is no way to specify that a custom type, reified as a directory, should have its extension hidde

Re: Custom universal types, but outside an application

2011-09-09 Thread dvlchat
"Stephen J. Butler" écrivait: > Shot in the dark, but looking at LSInfo.h it seems LSRegisterURL (with > your bundle URL) might work: Doesn't. Out of curiosity, I also tried lsregister directly from the command-line, but (probably as expected) it returns a 'not an application' error. :-(