Printing with Snow Leopard

2009-09-10 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 almos

iTunes/iPhoto like Database using CoreData?

2009-09-10 Thread Peter Zegelin
Hi, My carbon application has an iTunes like database to store MIDI files. It uses SQLlite as the database. I am thinking that I might converts the whole thing to CoreData when I rewrite the app in Cocoa so I was wondering if there are any examples that would be a suitable starting point

Re: CAShapeLayer for Drawing Lines; Animations Skewed

2009-09-10 Thread John Harper
On Sep 10, 2009, at 7:20 PM, Christopher J Kemsley wrote: CAShapeLayer with Path from PointA to PointB In this method, I used a CAShapeLayer with the correct color and a 1px width. I made a path between the two points. For moves, I created another path representing the new position and u

Re: XC & IB 3.2 overlapping siblings

2009-09-10 Thread Kyle Sluder
On Sep 10, 2009, at 9:19 PM, Graham Cox wrote: There are exceptions though. For example, two square buttons placed side by side such that they share a 1 pixel frame border. That flags an overlap warning, but it's the right placement for the best look for the buttons. One might be incline

Re: XC & IB 3.2 overlapping siblings

2009-09-10 Thread Graham Cox
On 11/09/2009, at 4:40 AM, 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." There are exceptions though. For example, two square buttons placed side by side such that the

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

2009-09-10 Thread Graham Cox
On 11/09/2009, at 4:41 AM, Jens Alfke wrote: This works fine when the new y value is a whole integer, but I'm seeing some strange behaviour when trying to scroll by fractional amount (e.g. .25 or .5 of a pixel). Are you sure you want to scroll by fractional pixels? It will be slower, becaus

Re: Is Core Data appropriate to my task?

2009-09-10 Thread Ben Trumbull
Before anything else, let me say thank you for a clear, concise, and very helpful set of answers to my questions; I was expecting rather more of a struggle for understanding :). my pleasure. On Sep 10, 2009, at 5:04 PM, Ben Trumbull wrote: The inverse relationship from Planet to Employee, "al

Re: Is Core Data appropriate to my task?

2009-09-10 Thread Ben Trumbull
I don't see this as being equivelant at all. Extending the example, let's say the company with these Employees has as its directors several discriminating unfair people, and thus an Employee from any given Planet gets a salary adjustment based on that Planet. The obvious place for this data is th

CAShapeLayer for Drawing Lines; Animations Skewed

2009-09-10 Thread Christopher J Kemsley
Hi all, In my current development project, I have numerous dots that will be moved around periodically, each connected by a line. The dots are represented as CALayers, with the "contents" set to a simple 20x20 dot, and they are moved around by animating the "position" property. The conn

Re: XC & IB 3.2 overlapping siblings

2009-09-10 Thread Sean McBride
On 9/10/09 3:51 AM, Steve Cronin said: >I know I'm late to the game here but I just took my app for a compile >under XC3.2 for the first time... > >A few NSString encoding loose ends OK but WHAMO my .xib files are >hammered with ~100 errors (not warnings!) > >".. This view overlaps one of its sib

Re: How can we draw a horizontal line with embossing effect?

2009-09-10 Thread Nathan Day
You could also try one of the draw bezel functions NSDrawDarkBezel NSDrawGrayBezel NSDrawLightBezel NSDrawWhiteBezel with a height of 2, and a y value with a .5 decimal On 11/09/2009, at 12:12 AM, Steven Degutis wrote: Arun, It's just two lines drawn on top of one another, with the top one

Re: Is Core Data appropriate to my task?

2009-09-10 Thread Gwynne Raskind
Before anything else, let me say thank you for a clear, concise, and very helpful set of answers to my questions; I was expecting rather more of a struggle for understanding :). On Sep 10, 2009, at 5:04 PM, Ben Trumbull wrote: support for such a thing; I would either have to write a custom p

Snow Leopard and Exchange access using ABAddressBook

2009-09-10 Thread Steve Cronin
Folks; I am trying to understand whether ABAddressBook will permit interaction with Exchange. I don't see anything in the documentation specifically on this point. Can anyone comment on this? Am I missing a resource? Is it currently not supported? Thanks for any thoughts! Steve

re: Is Core Data appropriate to my task?

2009-09-10 Thread Ben Trumbull
Gwynne, I have an application that manages two kinds of data: A singular file that contains a large amount of rarely changed (but not invariant) data, and documents that contain one root object's worth of information that connects to the singular data set in a very large number of places; the do

Re: Is Core Data appropriate to my task?

2009-09-10 Thread Gwynne Raskind
On Sep 10, 2009, at 3:21 PM, Erik Buck wrote: Yes. Use Core Data. Your application is exactly what Core data is intended to support. Create a planet entity. Create a one to many relationship so that each employee has one planet, but each planet has an unlimited number of employees. This

Re: Scripting Bridge link error

2009-09-10 Thread Randall Meadows
On Sep 9, 2009, at 8:12 PM, Jason Foreman wrote: You don't actually instantiate ScriptingBridge objects directly like that. The interface header is generated so you can get type checking when you call methods, but the actual class is acquired dynamically at runtime. See the documentation

Re: NSServiceCategory

2009-09-10 Thread Nick Zitzmann
On Sep 10, 2009, at 1:30 PM, Peter Ammon wrote: Yes, Searching unfortunately does not have an associated UTI - as you discovered you can specify the category name explicitly in that case. That's what I thought. And if Scott or Mmalc or any other documentation writers are reading this, th

Re: NSServiceCategory

2009-09-10 Thread Peter Ammon
On Sep 10, 2009, at 12:15 PM, Nick Zitzmann wrote: On Sep 10, 2009, at 1:08 PM, Peter Ammon wrote: You should try to pick a UTI that represents your Service accurately. If the UTI you pick does not conform to any category, then it will wind up in General. But if later Apple adds a new

Re: Is Core Data appropriate to my task?

2009-09-10 Thread Erik Buck
Yes.  Use Core Data.  Your application is exactly what Core data is intended to support. Create a planet entity. Create a one to many relationship so that each employee has one planet, but each planet has an unlimited number of employees. This is exactly what "lookup tables" in sql produce.  Th

Re: Adding an observer is memory expensive

2009-09-10 Thread Greg Guerin
Torsten Radtke wrote: I observed excessive memory usage (working in a garbage-collected environment under 10.6) if I add an observer to a KVO-compliant object. So if I add an observer to say 10 objects, Instruments shows that 10 2KB blocks of memory are allocated (additionaly ther

Re: NSServiceCategory

2009-09-10 Thread Nick Zitzmann
On Sep 10, 2009, at 1:08 PM, Peter Ammon wrote: You should try to pick a UTI that represents your Service accurately. If the UTI you pick does not conform to any category, then it will wind up in General. But if later Apple adds a new category, and your Service's UTI conforms to the new

[SOLVED] Re: NSOutlineView with multiple Core Data entities

2009-09-10 Thread Matthew Lindfield Seager
On 09/09/2009, at 2:28 PM, Brent Gulanowski wrote: Here's one option. I think it's your second one. Was easier to do than to try to explain it. Plus less chance I describe it wrong. Thank you so much Brent! The combination of adding ArrayController outlets to the AppDelegate and then returning t

Re: NSServiceCategory

2009-09-10 Thread Peter Ammon
On Sep 10, 2009, at 10:30 AM, Nick Zitzmann wrote: I have a service that can apply to multiple categories due to the pasteboard types it accepts. In Snow Leopard, for some reason, the service always shows up under the Pictures category even though it also accepts text. I want it to show up

Re: NSServiceCategory

2009-09-10 Thread Nick Zitzmann
On Sep 10, 2009, at 11:30 AM, Nick Zitzmann wrote: I'm aware of an apparently undocumented NSRequiredContext key called NSServiceCategory that manually sets the service category in the Keyboard preference pane, which is useful when the pane does not correctly categorize the service, which

[MEET] Reminder : LA CocoaHeads TONIGHT 9/10/09 at 7:30pm

2009-09-10 Thread Rob Ross
Greetings LA CocoaHeads. Tonight, Ron will be demoing his iPhone app “The DVD Bit Budget Assistant”, and showing some of the facets that went into creating it. More info on the app itself at http://www.editgroove.com/ We meet at the offices of E! Entertainment at 7:30pm. Our meeting location

Re: CGWindowListCreateImage fails on Snow Leopard with kCGNullWindowID

2009-09-10 Thread Jason Foreman
On Sep 10, 2009, at 12:34 PM, David Duncan wrote: On Sep 10, 2009, at 7:32 AM, Jason Foreman wrote: CGImageRef screenShot = CGWindowListCreateImage(CGRectInfinite, kCGWindowListOptionOnScreenOnly, kCGNullWindowID, kCGWindowImageDefault); On Snow Leopard, the CGImageRef is NULL and the

setwantslayer:yes = rendering problem scaling subviews

2009-09-10 Thread Joshua Strickon
I have finally narrowed down my subview scaling problem to the setwantslayer. If that is set to YES for an nsview, changing the frame and bounds of a subview can produce arbitrary results. Leaving it off seems to work. My only issue is that I will no longer be able to use core animation

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

2009-09-10 Thread Jens Alfke
On Sep 10, 2009, at 7:01 AM, Martin Redington wrote: This works fine when the new y value is a whole integer, but I'm seeing some strange behaviour when trying to scroll by fractional amount (e.g. .25 or .5 of a pixel). Are you sure you want to scroll by fractional pixels? It will be slower

Is Core Data appropriate to my task?

2009-09-10 Thread Gwynne Raskind
I have an application that manages two kinds of data: A singular file that contains a large amount of rarely changed (but not invariant) data, and documents that contain one root object's worth of information that connects to the singular data set in a very large number of places; the docum

Re: XC & IB 3.2 overlapping siblings

2009-09-10 Thread Erik Buck
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." If you must use the same area of the user interface for different purposes at different times, consider using a tab view with no visible tabs and

Re: QTMovie and audio stream

2009-09-10 Thread Jens Alfke
On Sep 10, 2009, at 1:54 AM, Massimiliano Gargani wrote: I'm developing a little music player. It works fine with file but it doesn't work with audio streaming. as you can see from log below it wants to open the stream as a file: 2009-09-10 10:47:04.221 Primafila[511:10b] the file path http

Re: NSArray EXEC_BAD_ACCESS when initalized with strings

2009-09-10 Thread Jens Alfke
On Sep 9, 2009, at 11:39 PM, Dave Keck wrote: If you enable the -Wformat warning, the compiler will warn you if you omit the trailing nil. Never understood why it's not enabled by default... The first thing I do in a new Xcode project is, in the project build settings, add "-Wall" to "other

Re: UIImagePickerController problem

2009-09-10 Thread David Duncan
To add to Luke's comment, changing the supported orientations as reported by -shouldAutorotateToInterfaceOrientation: is not enough to actually provide support for different orientations. Doing this to the view controllers that we provide is generally not going to do what you want (as you'v

Re: CGWindowListCreateImage fails on Snow Leopard with kCGNullWindowID

2009-09-10 Thread David Duncan
On Sep 10, 2009, at 7:32 AM, Jason Foreman wrote: I am attempting to use the CGWindowListCreateImage function to capture a desktop screenshot. The following code (taken straight from the SonOfGrab sample) works on Leopard, but is failing on Snow Leopard: CGImageRef screenShot = CGWindowL

NSServiceCategory

2009-09-10 Thread Nick Zitzmann
I have a service that can apply to multiple categories due to the pasteboard types it accepts. In Snow Leopard, for some reason, the service always shows up under the Pictures category even though it also accepts text. I want it to show up in the General category. I'm aware of an apparently

Re: NSImage - drawInRect SnowLeopard issue

2009-09-10 Thread tresa
Hi Ken, The targeted rectangle area is correct so I don't think it is an issue with that.I have filed Bug ID# 7212266 and am trying to build a sample to show the issue. Thanks for your response, Tresa > Hi Tresa, > This isn't enough information to tell what might be going wrong. > > Please file

Re: XC & IB 3.2 overlapping siblings

2009-09-10 Thread Nick Zitzmann
On Sep 10, 2009, at 9:39 AM, Steve Cronin wrote: Do you have to re-jigger everything because IB can't fathom that they might not be visible at the same time? Probably. Can you combine those buttons and then change them as you go? That would also conserve memory, disk space, & loading times

Re: How can we draw a horizontal line with embossing effect?

2009-09-10 Thread Joar Wingfors
On 10 sep 2009, at 02.15, Arun wrote: How can we draw a horizontal line with embossing effect? The attached picture describes more clearly. I'd probably use NSShadow. j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: XC & IB 3.2 overlapping siblings

2009-09-10 Thread Steve Cronin
Nick; Hey thanks for the reply! Yes, I'm aware of the IB target setting. If you still want to target Tiger this is a BIG surprise that these are now treated as errors. The really big question for me is how do you deal with 2 buttons that lie one on top of the other but are never drawn at t

Re: Scripting Bridge link error

2009-09-10 Thread Randall Meadows
On Sep 9, 2009, at 8:12 PM, Jason Foreman wrote: You don't actually instantiate ScriptingBridge objects directly like that. The interface header is generated so you can get type checking when you call methods, but the actual class is acquired dynamically at runtime. See the documentation

Re: IKSlideshow reloadData should reload, yes?

2009-09-10 Thread Adam Knight
Is there a better forum to ask this question? I filed a bug report months ago and have heard nothing on that, either (as usual, which is rather depressing overall). On Aug 31, 2009, at 4:50 PM, Adam Knight wrote: I'm using IKSlideshow to display images that I'm fetching from a server in t

Re: UIImagePickerController problem

2009-09-10 Thread Luke the Hiesterman
You're better off filing a feature request for a landscape image picker. Honestly, though, I don't see landscape as an orientation that makes sense for picking images on the phone. Luke On Sep 10, 2009, at 8:10 AM, Development wrote: I'm working on an app that is in landscapeleft mode most

Adding an observer is memory expensive

2009-09-10 Thread Torsten Radtke
Hi, I observed excessive memory usage (working in a garbage-collected environment under 10.6) if I add an observer to a KVO-compliant object. So if I add an observer to say 10 objects, Instruments shows that 10 2KB blocks of memory are allocated (additionaly there are another 1000

Re: Table cell: how show blue when tapped only while editing is true?

2009-09-10 Thread Luke the Hiesterman
When you want nothing to happen, cell.selectionStyle = UITableViewCellSelectionStyleNone; When you want blue, cell.selectionStyle = UITableViewCellSelectionStyleBlue; Luke On Sep 9, 2009, at 11:42 PM, Steve Fogel wrote: Hi, all... I've got a table view for which users must tap an Edit

Re: XC & IB 3.2 overlapping siblings

2009-09-10 Thread Nick Zitzmann
On Sep 10, 2009, at 2:51 AM, Steve Cronin wrote: My base SDK is set to 10.6 and a deployment of 10.4. Everything was peachy under 10.5 and XC3.1 no such warnings or errors. Sooo does this mean I cannot use XC3.2 unless I fix all these issues? Nib deployment targets are actually set in the ni

UIImagePickerController problem

2009-09-10 Thread Development
I'm working on an app that is in landscapeleft mode most of the time. I need to be able to pick an image but even after subclassing the imagepickercontroller and returning yes for the -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) toInterfaceOrientation when the orien

Re: How can we draw a horizontal line with embossing effect?

2009-09-10 Thread Steven Degutis
Arun, It's just two lines drawn on top of one another, with the top one darker than the background and the bottom one lighter. I use it in my Preference panels all the time. -- Steven Degutis http://www.thoughtfultree.com/ http://www.degutis.org/ On Thu, Sep 10, 2009 at 4:15 AM, Arun wrote: >

[SOLVED] Re: Custom NSActionCell subclass + table column binding

2009-09-10 Thread Stamenkovic Florijan
On Sep 10, 2009, at 09:40, BareFeet wrote: Hi Florijan, I've made an NSActionCell subclass for indicating the priority of an object, similar to the rating column in iTunes. The visual aspects of it are working fine, as well as displaying the correct priority for table rows that have a pr

CGWindowListCreateImage fails on Snow Leopard with kCGNullWindowID

2009-09-10 Thread Jason Foreman
I am attempting to use the CGWindowListCreateImage function to capture a desktop screenshot. The following code (taken straight from the SonOfGrab sample) works on Leopard, but is failing on Snow Leopard: CGImageRef screenShot = CGWindowListCreateImage(CGRectInfinite, kCGWindowListOption

Re: Show/Hide file extension issue in savePanel

2009-09-10 Thread Sean McBride
On 9/9/09 5:40 PM, Paul Figgiani said: >Prior to installing Snow Leopard the following code worked with no problem, >It runs a savePanel for exporting an rtf doc with the contents of a >textVIew. Under 10.6 it still works. However the option to show/hide the >output file extension stopped working

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

2009-09-10 Thread Martin Redington
I've got two NSScrollView's in separate windows, that I'm trying to scroll programmatically in synchrony. I'm calling [[scrollView contentView] scrollToPoint:theNewPoint]; This works fine when the new y value is a whole integer, but I'm seeing some strange behaviour when trying to scroll by frac

Re: Custom NSActionCell subclass + table column binding

2009-09-10 Thread BareFeet
Hi Florijan, I've made an NSActionCell subclass for indicating the priority of an object, similar to the rating column in iTunes. The visual aspects of it are working fine, as well as displaying the correct priority for table rows that have a priority value set. The problem is setting the

Custom NSActionCell subclass + table column binding

2009-09-10 Thread Stamenkovic Florijan
Hi all, I've made an NSActionCell subclass for indicating the priority of an object, similar to the rating column in iTunes. The visual aspects of it are working fine, as well as displaying the correct priority for table rows that have a priority value set. The problem is setting the new

Re: [iPhone] How to sense the duration of touch on iPhone button.

2009-09-10 Thread Roland King
start a timer when the button goes down and queue it. If it fires before the button goes up, you have your '+', if the finger goes up first, cancel the timer. On 10-Sep-2009, at 8:35 PM, Dan Ribe wrote: Hi All, I am trying to implement a phone pad for my application. For key with title

[iPhone] How to sense the duration of touch on iPhone button.

2009-09-10 Thread Dan Ribe
Hi All, I am trying to implement a phone pad for my application. For key with title '0' I want the same behavior as the iPhone phone application : 1. If user touches, it should immediately display a 0. 2. If user holds down the button for some time, it should display a '+' (I mean 0 should be

Re: Passing variables between .m files

2009-09-10 Thread BareFeet
Hi Aaron, I have been struggling over this one for a while now, and what frustrates me the most is the feeling that it should be relatively simple to do. Let's say I have File1.m and File2.m, and I would like to access a variable in File2.m from File1. My previous programming experience i

Re: How can we draw a horizontal line with embossing effect?

2009-09-10 Thread Graham Cox
On 10/09/2009, at 7:15 PM, Arun wrote: How can we draw a horizontal line with embossing effect? The attached picture describes more clearly. Why not try zooming in on that image and see how it's drawn. It's trivially easy. --Graham ___ Cocoa

How can we draw a horizontal line with embossing effect?

2009-09-10 Thread Arun
Hi All How can we draw a horizontal line with embossing effect? The attached picture describes more clearly. Thanks Arun KA <>___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

QTMovie and audio stream

2009-09-10 Thread Massimiliano Gargani
Hi all, I'm developing a little music player. It works fine with file but it doesn't work with audio streaming. my code is: NSURL* theFilePath = [[NSURL alloc] initWithString:[[theTable objectAtIndex:sx] objectForKey:@"Location"]]; NSLog(@"the file path %@", theFilePath);

XC & IB 3.2 overlapping siblings

2009-09-10 Thread Steve Cronin
Folks; I know I'm late to the game here but I just took my app for a compile under XC3.2 for the first time… A few NSString encoding loose ends OK but WHAMO my .xib files are hammered with ~100 errors (not warnings!) ".. This view overlaps one of its siblings. Overlapping sibling views

Re: NSImage - drawInRect SnowLeopard issue

2009-09-10 Thread Ken Ferry
Hi Tresa, This isn't enough information to tell what might be going wrong. Please file a bug, and give steps to reproduce in your app. (Or a reduction, but it sounds like you don't know how to make a reduction here.) I'm not aware of any problem that would cause this. You might try replacing yo

Re: Passing variables between .m files

2009-09-10 Thread Graham Cox
Hi Aaron, You seem to be conflating several unrelated concepts here. First, a file is not an object or class, and an object or class is not a file. A file is just a container for some text which can be compiled. A file might contain the definitions for several objects, or a single object m