Printing with Snow Leopard

2009-09-11 Thread Gerriet M. Denkmann
An app which ran without problems on Leopard likes to crash on Snow Leopard (10.6.1) (both in i386 and x86_64). How to crash: print several times; might crash the first time, might crash the seventh time, but crash it will. The backtrace and the location of the crash varies wildly. In

Re: Tab view customization

2009-09-11 Thread Arun
Thanks Graham, I tried your suggestion and it works well. But to my surprise i found that if i use a Segmented Control with style as Small square, the IB throws a warning if the Deployment target is set as Mac OS X 10.4.x. Is there any way in which we can achieve Small sqaure style Segmented

Re: Subversion and Interface Builder

2009-09-11 Thread Alexander Hartner
Thanks for all the feedback on this. Have there been any new development with 10.6 in this regard. I wonder what Apple themselves are using for version control ? Thanks in advance Alex On 28 Aug 2009, at 00:04, Alexander Hartner wrote: For some time now I have been struggling with

Re: XC IB 3.2 overlapping siblings

2009-09-11 Thread Andreas Grosam
On Sep 10, 2009, at 8:40 PM, Erik Buck wrote: Don't overlap sibling views. Even though it works reliably now, it is still a poor practice for controls and has a definite user interface smell. Do you mean sibling *views* shall not overlap, or do you mean *controls* shall not overlap?

Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?

2009-09-11 Thread Martin Redington
Hi Jens, I'm not totally sure that I want to allow scrolling by fractional amounts - I've definitely seen some smearing, with copy on scroll set, but without that everything (in the textview) seems to render ok, and the speed is acceptable for now, so I'd at least like the option. It seems

Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?

2009-09-11 Thread Martin Redington
Copy on scroll is off for both views - with it set on, I get smearing, but only in the view that's working with fractional amounts (i.e. not rounding off). In this particular case, I actually want slow, but smooth, scrolling, and the ability to change the scrolling speed in very fine increments,

Adding an associated reference is memory expensive (was: Adding an observer is memory expensive)

2009-09-11 Thread Torsten Radtke
Is this when the first observer is added to each of the 100k objects? Yes, it happens for the first observer I add. But I expressed the problem not good enough. Adding an observer is realized by adding an associated reference (with objc_addAssociatedObject(), new in Snow Leopard) to the

Re: Intercepting user changes to table cells using bindings

2009-09-11 Thread Sean Kline
Tom, Would this not be an application for Key-Value Observing? Regards, Sean On Thu, Sep 10, 2009 at 2:09 AM, BareFeet list.develo...@tandb.com.auwrote: Hi all, I have a table view with columns bound to an NSArrayController. The user can edit the values that appear and it's all working

Re: KVO can be unsafe in -init?

2009-09-11 Thread John Chang
Just to update you guys. We managed to reproduce the problem in-house and catch it in the debugger. The backtrace looks the same as the one in the auto-generated crash reports. (gdb) bt #0 0x02546004 in ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___ () #1 0x98c81f49 in objc_exception_throw () #2

Re: XC IB 3.2 overlapping siblings

2009-09-11 Thread Erik Buck
Remember that all controls are views. Overlapping sibling controls have a definite user interface smell. Assuming that the overlapping controls are visible at the same time, the appearance is likely to be unsatisfactory. Issues of mouse based picking arise. Which control will be hit by

NSString and UIWebView load

2009-09-11 Thread Dragos Ionel
Is the following code supposed to run correctly? NSString* *htmlContent* = ...;// very long html content UIWebView* webView = [[UIWebView alloc] initWithFrame:...]; [webView loadHTMLString:*htmlContent* baseURL:...]; //assume this will take some time *htmlContent* = @different text; My

controlling console message output

2009-09-11 Thread Rick C.
hello, my apologies if this has been answered before but is there a way to control and/or stop in some cases output to console from my app? of course the console logging is important but sometimes especially with NSTask i notice it can spit out rather harmless messages that will just fill the

Re: Printing with Snow Leopard

2009-09-11 Thread Corbin Dunn
Hi Garriet, Have you tried running with Zombies? Run - Run With Performance Tool - Zombies If so, does that show an overrelease anywhere? Can you please log a bug on bugreporter.apple.com if you believe it is a bug in the Apple framework. Please include an isolated test case, if possible

NSSegmentedControl with square edges

2009-09-11 Thread Arun
Hi All, Does anybody know how to create an NSSegmentedControl with squared edges ? If anyone has sample code please share.. I know if i use leopard SDK, by just changing a style in the IB we can achieve this. But since my app needs to support on tiger, i need this. Thanks Arun KA

Re: Subversion and Interface Builder

2009-09-11 Thread Jens Alfke
On Sep 11, 2009, at 1:10 AM, Alexander Hartner wrote: Thanks for all the feedback on this. Have there been any new development with 10.6 in this regard. The .xib file format was added in 10.5 — it's a flat file, so no problems with directory versioning. You should switch to using that.

Core Data Manual Migration

2009-09-11 Thread Yvan BARTHÉLEMY
Hello, I need to implement manual migration in order to chain migrations. I have compiled every mapping model from a version to the next one. All my models are included in my resources (in a .momd bundle). My code determines the model version used to create the document

Re: NSSegmentedControl with square edges

2009-09-11 Thread Peter Ammon
On Sep 11, 2009, at 8:10 AM, Arun wrote: Hi All, Does anybody know how to create an NSSegmentedControl with squared edges ? If anyone has sample code please share.. I know if i use leopard SDK, by just changing a style in the IB we can achieve this. But since my app needs to support on

Re: NSTextView resizeability and scrolling

2009-09-11 Thread Ross Carter
On Sep 10, 2009, at 12:10 AM, Stamenkovic Florijan wrote: Hi Ross, Thanks for your reply, On Sep 09, 2009, at 13:15, Ross Carter wrote: I've googled for a solution, found nothing. I tried making it by observing the NSViewFrameChangedNotification of the NSTextView from it's parent, and

re: Core Data Manual Migration

2009-09-11 Thread Ben Trumbull
The process fails here and the log then contains the following: An error occured while manually migrating document: Error Domain=NSCocoaErrorDomain Code=134110 UserInfo=0xf336960 An error occured during persistent store migration. [6871:813] Error: { reason = Can't add source store; } There

Re: Adding an associated reference is memory expensive (was: Adding an observer is memory expensive)

2009-09-11 Thread Ken Ferry
Hi Torsten, Please file as a bug if you haven't already. That clearly needs to be looked into. For your KVO issue, you can probably work around it by implementing - (void)setObservationInfo:(id)observationInfo; - (id)observationInfo; on the object that you are observing. This provides the

Re: Adding an associated reference is memory expensive (was: Adding an observer is memory expensive)

2009-09-11 Thread Greg Parker
We have your earlier report rdar://7212101. Thanks, Torsten. (Ken didn't see it because the bug didn't pass through his group's hands on its way to my group.) This is a bug in the associated reference machinery. That code keeps a C++ std::hash_map per augmented object, mapping associated

Re: [myNSWindow setDocumentEdited:dirtyB] fail ??

2009-09-11 Thread David M. Cotter
the myNSWindow is NOT nil when i try to set a breakpoint on setDocumentEdited, the enabled check box shows mixed state, and the breakpoint is never hit. if i try to set it to on it goes back to mixed state [NSApp mainWindow] always returns nil, so i must use myNSWindow still not working

nshttpcookiestorage and session cookie

2009-09-11 Thread Russell Gray
I am posingasclass for NSHTTPCookieStorage, and are trying to block certain cookies. I have been experimenting with blocking all cookies with following method: - (void)setCookies:(NSArray *)cookies forURL:(NSURL *)theURL mainDocumentURL:(NSURL *)mainDocumentURL { return; } which works

Snow Leopard force quit hang reports no longer contain useful information

2009-09-11 Thread Martin Wierschin
Hello everyone, Prior to OSX 10.6, hang reports generated by a force quit action were very useful. They included both a sampler/stack trace and a description of the binary listing out all the loaded bundles/frameworks. Now, running on OSX 10.6, these reports include information for every

Re: NSString and UIWebView load

2009-09-11 Thread Andrew Farmer
On 11 Sep 2009, at 06:59, Dragos Ionel wrote: Is the following code supposed to run correctly? NSString* *htmlContent* = ...;// very long html content UIWebView* webView = [[UIWebView alloc] initWithFrame:...]; [webView loadHTMLString:*htmlContent* baseURL:...]; //assume this will take

AffineTransform

2009-09-11 Thread Development
I am using the following to rotate an image and Im having a problem. After the transform when I attempt to move the image it collapses to 0 width and does other unpredictable and strange things. What am I forgetting to do so that the image is movable? self.transform =

Re: NSSegmentedControl with square edges

2009-09-11 Thread Stephen Blinkhorn
On 11 Sep 2009, at 11:08, Peter Ammon wrote: This style is not available on Tiger. If you want to make it look the same on Tiger and later, you will have to make your own custom control. It's easier to just live with the appearance on Tiger. That's true but if you have the time,