Re: Calculating accurate bounds of stroked paths [SOLVED]

2008-07-09 Thread Chris Suter
Hi Graham, On 09/07/2008, at 4:37 PM, Graham Cox wrote: On 9 Jul 2008, at 4:02 pm, Chris Suter wrote: so you can get a worst case bounds by ignoring the mitre limit. No you can't. If the stroke width is 'w' then you can outset the bounds by w/2 to enclose the path for straight edges and a

Re: Calculating accurate bounds of stroked paths [SOLVED]

2008-07-09 Thread Graham Cox
On 9 Jul 2008, at 5:11 pm, Chris Suter wrote: You could ignore the mitre limit and assume it was always mitre joint and it would give you a worst case bounds. However, it wouldn't be sensible to do that since the bounds would stretch out excessively for very acute angles. Without knowing

Re: Distributed Objects "connection went invalid while waiting for a reply"

2008-07-09 Thread Ken Thomases
On Jul 8, 2008, at 7:11 PM, Hamish Allan wrote: I'm seeing "connection went invalid while waiting for a reply" in a DO callback. The client passes self in a call to the server; some time later, the server calls a method on that client (proxy), the program hangs for a second or so, the "connectio

Re: Calculating accurate bounds of stroked paths [SOLVED]

2008-07-09 Thread Peter Zegelin
On 09/07/2008, at 5:24 PM, Graham Cox wrote: You will need to also take into account of the line width (as I'm sure you do) so I think the combined offset would be best expressed as: max(w / 2, ml * w / 2) where ml is the mitre limit. That's right, and precisely what I'

Re: problem with IKImageView and filters

2008-07-09 Thread hsanderson
On 8 Jul 2008, at 20:12, douglas a. welton wrote: Am I reading correctly that you have two IKImageViews stacked on top on one another? Yes. If I understand the Core Animation documentation correctly, a view can be composited with underlying views using a Compositing Filter. This seems to

Re: Distributed Objects "connection went invalid while waiting for a reply"

2008-07-09 Thread Mike Bellerby
I use DOs on 10.3, 10.4 and 10.5. They work correctly on all versions. From your description I'm not entirely sure what you are trying to do. Could you post a code example and I try to help. Cheers Mike On 9 Jul 2008, at 01:11, Hamish Allan wrote: I'm seeing "connection went invalid while

Re: Making a text cell in a table editable

2008-07-09 Thread Jens Miltner
Am 09.07.2008 um 08:09 schrieb Chris Idou: How do I programmatically make a text cell in a NSTableView to have focus and be in edit mode? I believe -[NSTableView editColumn:(NSInteger)columnIndex row: (NSInteger)rowIndex withEvent:(NSEvent *)theEvent select:(BOOL)flag] is the method you

Debugging strategy - exceptions

2008-07-09 Thread Ruotger Skupin
Hi, this is more of an open discussion topic than a concrete question but hopefully someone has a good idea about this: I got a bug report of a non-crash bug I cannot reproduce and where I do not even know where to start looking. The only hint is a line in the console.log: *** -[NSCFDic

Receive notifications about frontmost application change

2008-07-09 Thread Александр Даровских
Hi, Is there any way to subscribe to frontmost application change notification? For example, via NSDistributedNotificationCenter or some other facility? I have managed to get process startup and shutdown notifications, but I cannot get active application change notification. Maybe it is do

Re: controlling system muting ?

2008-07-09 Thread Mike Abdullah
On 9 Jul 2008, at 04:21, Jason Bobier wrote: I also need to determine the user's current mute and volume settings and restore them after my alert plays, which is the other reason that I was looking for something other than AppleScript. Well it's still possible to do that with AppleScript,

Re: NSDateFormatter and NSCell oddness

2008-07-09 Thread Nathan Kinsinger
On Jul 8, 2008, at 6:43 PM, [EMAIL PROTECTED] wrote: Hello, I'm trying to replicate the Finder's behaviour for date fields when resizing. I found this on the archives which pretty much has the answer: http://www.cocoabuilder.com/archive/message/cocoa/2005/8/9/143911 I'm trying to update

Re: Debugging strategy - exceptions

2008-07-09 Thread Joan Lluch (casa)
El 09/07/2008, a las 12:13, Ruotger Skupin escribió: So an exception got thrown for a pretty obvious reason, but where? Could be anywhere, even in WebKit (which we use). Is there any chance to get near the culprit without a stack trace (which I don't have)? This question is more suitab

Re: Receive notifications about frontmost application change

2008-07-09 Thread Mike Bellerby
Hi Which notifications do you want to receive? Cheers Mike On 9 Jul 2008, at 11:22, Александр Даровских wrote: Hi, Is there any way to subscribe to frontmost application change notification? For example, via NSDistributedNotificationCenter or some other facility? I have managed to get pro

Re: How to indent in NSOutlineView?

2008-07-09 Thread Aman Alam
Is there a way to indent main headings in NSOutlineView as follows: - Heading 1 Item Item Heading 2 Item Heading 2.1 Item Item Heading 3 Item I tried many ways to indent the hea

Re: How to indent in NSOutlineView?

2008-07-09 Thread Jens Miltner
Am 09.07.2008 um 13:09 schrieb Aman Alam: I am using datasource that contain two types of object. The first object (Heading) contains a flag. If it is YES then it act as child of other main heading. The second object(item) contains value to show which is always child of main heading.

Re: Debugging strategy - exceptions

2008-07-09 Thread Ken Thomases
On Jul 9, 2008, at 5:13 AM, Ruotger Skupin wrote: this is more of an open discussion topic than a concrete question but hopefully someone has a good idea about this: I got a bug report of a non-crash bug I cannot reproduce and where I do not even know where to start looking. The only hint i

how to get the status of network when the network is set disable.

2008-07-09 Thread xiaobin
Hello, I am writing a program to detect the status of network. In my program, I need get the status of network when the connection is set disable. here it is not by connecting the network to get the status. which API or method can work for it? for example, if my lan cable is unpluged or the net

Re: Debugging strategy - exceptions

2008-07-09 Thread Ruotger Skupin
I would rather not try to teach my users gdb... Ruotger Am 09.07.2008 um 12:31 schrieb Joan Lluch (casa): El 09/07/2008, a las 12:13, Ruotger Skupin escribió: So an exception got thrown for a pretty obvious reason, but where? Could be anywhere, even in WebKit (which we use). Is there any

A modal window dialog instead of a sheet

2008-07-09 Thread Ronnie B
I am trying to implement a login UI for a small app. The idea is that after the MainWindow nib is loaded, in case if no credentials were entered, a modal window asking for name and password will show up. The app will be blocked unless the modal window is closed either with Submit or Cancel button

Re: A modal window dialog instead of a sheet

2008-07-09 Thread Mike Bellerby
Try [NSApp runModalForWindow:window]; Cheers Mike On 9 Jul 2008, at 13:59, Ronnie B wrote: I am trying to implement a login UI for a small app. The idea is that after the MainWindow nib is loaded, in case if no credentials were entered, a modal window asking for name and password will show

Overriding v alueForKeyPath

2008-07-09 Thread Laurent Cerveau
Hi I am trying to us KVC in a way that it allows me to add an accessor semantic to an object so that it can answer to simple valueForKeyPah call. For example I want to be able to write [myObject valueForKeyPath:@"texts.title.en"] which would give me the english version of the title of m

Re: how to get the status of network when the network is set disable.

2008-07-09 Thread Michael Kaye
Try the SCNetworkReachability API... I borrowed the following from one of Apple's examples: - (BOOL)isDataSourceAvailable { static BOOL checkNetwork = YES; if (checkNetwork) { // Since checking the reachability of a host can be expensive, cache the result and perform the reachability c

Re: Debugging strategy - exceptions

2008-07-09 Thread Phil
On Wed, Jul 9, 2008 at 10:13 PM, Ruotger Skupin <[EMAIL PROTECTED]> wrote: > *** -[NSCFDictionary initWithObjects:forKeys:count:]: attempt to insert nil > value at objects[0] (key: NSFont) > > So an exception got thrown for a pretty obvious reason, but where? Could be > anywhere, even in WebKit (wh

top most window question when it is launched by another app

2008-07-09 Thread xiaobin
Hello, I have these question for several days. 1. How to make the modal window become the top most when the modal window is launched from another application by using NSTask? 2. And I also want to know the types of window in cocoa application. Is there only modal window in cocoa app when I use m

Re: top most window question when it is launched by another app

2008-07-09 Thread Mike Abdullah
On 9 Jul 2008, at 15:10, xiaobin wrote: Hello, I have these question for several days. 1. How to make the modal window become the top most when the modal window is launched from another application by using NSTask? 2. And I also want to know the types of window in cocoa application. Is there

afferentless mac mini

2008-07-09 Thread em
I have a "Network Receiver" application which is in my "login items" section of an Apple Intel mac mini computer running the latest version of Leopard. I do not need a keyboard, nor a mouse directly wired to this computer(or indirectly thru wifi:-)), as these afferent branches are obviously to

Re: top most window question when it is launched by another app

2008-07-09 Thread Mike Bellerby
In BB.app do [NSApp activateIgnoringOtherApps:YES]; before showing the window. Cheers Mike On 9 Jul 2008, at 15:10, xiaobin wrote: Hello, I have these question for several days. 1. How to make the modal window become the top most when the modal window is launched from another application by

Re: Finding AS related memory leak

2008-07-09 Thread Antonio Nunes
Taking this back to the list, as I think it came off by mistake... On 9 Jul 2008, at 14:56, John C. Daub wrote: It's difficult to say what the problem IS, but I can suggest a few things to look at: on 7/9/08 1:48 AM, Antonio Nunes at [EMAIL PROTECTED] wrote: When the script runs, the cod

ANN: CocoaHeads NYC, Thu July 10

2008-07-09 Thread Andy Lee
Ed VanVliet of VVI will be presenting DAQ Plot and Vvidget. Details here: --Andy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: counting managed objects of a certain type

2008-07-09 Thread Daniel Child
Somehow I thought a predicate was mandatory. Simply setting the entity works. Thank you. On Jul 9, 2008, at 2:34 AM, mmalc crawford wrote: On Jul 8, 2008, at 11:16 PM, Daniel Child wrote: NSManagedObjectContext *moc = [self managedObjectContext]; NSEntityDescription *entityDescription = [

Re: Does this caution need fixed? (newb)

2008-07-09 Thread Chris Paveglio
I'm trying to make sure that this part of my code is good and clean and not leaking. I believe that I have it right (but still think I have something wrong). This code makes a list of file paths, and then copies the files or folders from their location to the destination the user selected. If th

Re: Finding AS related memory leak

2008-07-09 Thread Antonio Nunes
On 9 Jul 2008, at 15:40, Antonio Nunes wrote: Taking this back to the list, as I think it came off by mistake... Hmmm, directed it back to the wrong list at that. Apologies. António --- And could you keep your heart in wonder at the da

Re: Does this caution need fixed? (newb)

2008-07-09 Thread Jens Alfke
On 9 Jul '08, at 7:44 AM, Chris Paveglio wrote: I'm trying to make sure that this part of my code is good and clean and not leaking. I believe that I have it right (but still think I have something wrong). It looks OK to me on quick reading. The main thing I'd change is to put the path s

Re: afferentless mac mini

2008-07-09 Thread Jens Alfke
On 9 Jul '08, at 7:22 AM, em wrote: I have a "Network Receiver" application which is in my "login items" section of an Apple Intel mac mini computer running the latest version of Leopard. I do not need a keyboard, nor a mouse directly wired to this computer(or indirectly thru wifi:-)), as

Re: Debugging strategy - exceptions

2008-07-09 Thread Jens Alfke
On 9 Jul '08, at 5:32 AM, Ruotger Skupin wrote: I would rather not try to teach my users gdb... My MYUtilities library includes support for getting exception backtraces at runtime and reporting them to the user (see "ExceptionUtils.h"). http://mooseyard.com/hg/hgwebdir.cgi/MYUtil

Re: Receive notifications about frontmost application change

2008-07-09 Thread Jens Alfke
On 9 Jul '08, at 3:22 AM, Александр Даровских wrote: Hi, Is there any way to subscribe to frontmost application change notification? For example, via NSDistributedNotificationCenter or some other facility? I have managed to get process startup and shutdown notifications, but I cannot get

Re: Receive notifications about frontmost application change

2008-07-09 Thread Matt Gough
You can do this (and a lot of other stuff not covered by NSWorkspace ) with a CarbonEvent handler on kEventClassApplication, kEventAppFrontSwitched. Matt On 9 Jul 2008, at 5:44pm, Jens Alfke wrote: On 9 Jul '08, at 3:22 AM, Александр Даровских wrote: Hi, Is there any way to subscribe to

Re: Distributed Objects "connection went invalid while waiting for a reply"

2008-07-09 Thread Brad Gibbs
Is Distributed Objects still the preferred method for communicating among computers on a local network? It's been hinted that DO may be deprecated in the not-so-distant future. When I asked about DO recently, I was pushed in the direction of Jens Alfke's Blip. Thanks. On Jul 9, 2008,

Re: Distributed Objects "connection went invalid while waiting for a reply"

2008-07-09 Thread Ken Thomases
On Jul 9, 2008, at 10:53 AM, Brad Gibbs wrote: Is Distributed Objects still the preferred method for communicating among computers on a local network? It's been hinted that DO may be deprecated in the not-so-distant future. I've seen and heard comments from Apple that Distributed Objects

Deploying application with Growl support

2008-07-09 Thread Matthew Gertner
Hi, Perhaps this isn't the right place to ask this, but I have a Cocoa application that uses Growl for notifications. I'm looking for information about how to create a package so the application is distributed with Growl for those users who don't already have the latter installed. Can anyone give

Re: Distributed Objects "connection went invalid while waiting for a reply"

2008-07-09 Thread Hamish Allan
On Wed, Jul 9, 2008 at 10:14 AM, Mike Bellerby <[EMAIL PROTECTED]> wrote: > I use DOs on 10.3, 10.4 and 10.5. They work correctly on all versions. From > your description I'm not entirely sure what you are trying to do. Could you > post a code example and I try to help. Thanks, Mike. Will do -- I

Re: Distributed Objects "connection went invalid while waiting for a reply"

2008-07-09 Thread Hamish Allan
Hi Ken, Thanks for your reply. I already had NSZombieEnabled, so no help there, but the Object Allocations Instrument highlighted that -[NSConnection invalidate] was being called; a breakpoint on that revealed the following trace for thread 2: #0 0x91b1f916 in -[NSConnection invalidate] #1

Re: Overriding v alueForKeyPath

2008-07-09 Thread Hamish Allan
On Wed, Jul 9, 2008 at 2:39 PM, Laurent Cerveau <[EMAIL PROTECTED]> wrote: > Apparently what is happening is that the keyPath is decomposed, each object > is verified to be KVC compliant for the appropriate subPath and here we go : > nothing unexpected if I refer to the doc except that..the part I

Re: Deploying application with Growl support

2008-07-09 Thread Mike Abdullah
Adium does exactly this and is open source. I imagine a perusal of their code would be quite handy. Mike. On 9 Jul 2008, at 17:27, Matthew Gertner wrote: Hi, Perhaps this isn't the right place to ask this, but I have a Cocoa application that uses Growl for notifications. I'm looking for inf

Re: Redrawing CALayer subclass when super layer is scaled

2008-07-09 Thread David Duncan
On Jul 8, 2008, at 10:53 PM, Rick Mann wrote: I'm trying to use scaling of the superlayer to implement a zoom feature in my CAD app. The various elements in the canvas are drawn by a CALayer subclass I have, which overrides drawInContext:. After the zoom finishes animating, I want CA to cal

Re: Overriding v alueForKeyPath

2008-07-09 Thread Laurent Cerveau
Hi Hamish Thanks for the suggestion : I did in fact sit with a collegue and he also forced me to look at the other side (KVO ) and we kind of found a way Basically the order of calling is valueForKey for the first part of the "KV path" which goes in valueForUndefinedKey and if this "one d

Re: Receive notifications about frontmost application change

2008-07-09 Thread Jean-Daniel Dupas
Yes, so the bad new is that you have to go Carbon to listen front switched events, the good new is that this part of Carbon is available for 64 bits apps (probably because this is the only public way to do this for now). Le 9 juil. 08 à 17:49, Matt Gough a écrit : You can do this (and a

Re: Deploying application with Growl support

2008-07-09 Thread Peter Maurer
Perhaps this isn't the right place to ask this, but I have a Cocoa application that uses Growl for notifications. Have a look at the bottom of this page: You'll want to use Growl-WithInstaller.framework. If ther

Re: Deploying application with Growl support

2008-07-09 Thread Marcelo Alves
Read the growl documentation. There's a chapter explaining how to bundle a growl installer inside your app. Sent from my iPhone On 9 Jul 2008, at 13:27, "Matthew Gertner" <[EMAIL PROTECTED]> wrote: Hi, Perhaps this isn't the right place to ask this, but I have a Cocoa application that use

Re: Receive notifications about frontmost application change

2008-07-09 Thread Bill Cheeseman
on 2008-07-09 11:44 AM, Jens Alfke at [EMAIL PROTECTED] wrote: > On 9 Jul '08, at 3:22 AM, Александр Даровских wrote: > >> Hi, >> Is there any way to subscribe to frontmost application change >> notification? For example, via NSDistributedNotificationCenter or >> some other facility? I have manag

Re: Deploying application with Growl support

2008-07-09 Thread Matthew Gertner
Thanks for all the advice. I'll take a look and inquire on the Growl list if I need more help. On Wed, Jul 9, 2008 at 7:21 PM, Marcelo Alves <[EMAIL PROTECTED]> wrote: > Read the growl documentation. There's a chapter explaining how to bundle a > growl installer inside your app. > > > > Sent from

Re: Receive notifications about frontmost application change

2008-07-09 Thread Bill Cheeseman
on 2008-07-09 1:12 PM, Jean-Daniel Dupas at [EMAIL PROTECTED] wrote: > Yes, so the bad new is that you have to go Carbon to listen front > switched events, the good new is that this part of Carbon is available > for 64 bits apps (probably because this is the only public way to do > this for now).

Re: Receive notifications about frontmost application change

2008-07-09 Thread James Montgomerie
On 9 Jul 2008, at 18:46, Bill Cheeseman wrote: on 2008-07-09 11:44 AM, Jens Alfke at [EMAIL PROTECTED] wrote: On 9 Jul '08, at 3:22 AM, Александр Даровских wrote: Hi, Is there any way to subscribe to frontmost application change notification? For example, via NSDistributedNotificationCenter

Re: Redrawing CALayer subclass when super layer is scaled

2008-07-09 Thread Rick Mann
On Jul 9, 2008, at 09:56:36, David Duncan wrote: Your best solution for rendering multi-representational content in Core Animation is to use a CATiledLayer. It will automatically be called to update content as you zoom in and out (assuming you specify that the level of content exists). The

Re: Does this caution need fixed? (newb)

2008-07-09 Thread Brian Stern
On Jul 9, 2008, at 10:44 AM, Chris Paveglio wrote: I'm trying to make sure that this part of my code is good and clean and not leaking. I believe that I have it right (but still think I have something wrong). This code makes a list of file paths, and then copies the files or folders from t

Re: Redrawing CALayer subclass when super layer is scaled

2008-07-09 Thread David Duncan
On Jul 9, 2008, at 11:09 AM, Rick Mann wrote: My CAD program has a number of "parts" laid out on the canvas at the whim of the user. These parts are interconnected by the user with lines comprised of a series of orthogonal line segments (it's schematic capture CAD). There is one instance of

Re: Making a text cell in a table editable

2008-07-09 Thread Vitaly Ovchinnikov
I have a similar question. My NSTableView is bound to NSArrayController and I need to make cell editable immediately after adding new row. Rows added with default values and I need to allow user to edit them easy. I have an "Add" button that fires action like this: - (void) onAdd: (id) sender {

Set string value

2008-07-09 Thread Kevin Walzer
Hello, I'm trying to work through an exercise in the new Hillegass book and am encountering difficulties. The app fails to build. The relevant code snippet is below, with errors noted in the comments: -(IBAction)getCount:(id)sender { NSString *string = [textField stringValue]

Re: Set string value

2008-07-09 Thread Alex Wait
It's this line [textLabel setStringValue:@"\"[EMAIL PROTECTED]" is %d characters long", string, stringLength]; The setStringValue function does not take more than one argument. If you want to format the string like that try [textlabel setStringValue: [NSString stringWithFormat:@"\"[EMAIL PROTECT

Re: Set string value

2008-07-09 Thread I. Savant
>int *stringLength = [string length]; //warning: initialization makes > pointer from integer without a cast You're declaring an int pointer (int *) instead of an int (int), then assigning it an int value (the result of asking 'string' for its -length). -- I.S. _

Re: Set string value

2008-07-09 Thread Vitaly Ovchinnikov
try this: NSString *string = [textField stringValue]; int stringLength = [string length]; NSString *msg = [NSString stringWithFormat:@"\"[EMAIL PROTECTED]" is %d characters long", string, stringLength] [textLabel setStringValue:msg]; NSLog(@"%@", string); On Thu, Jul 10, 2008 at 12:12 AM, Kevin

RE: Set string value

2008-07-09 Thread Abernathy, Joshua
And your line "int *stringLength = [string length];" should not have the * in front of the variable name. Putting the * in front means it is a pointer to an int, but -[NSString length] returns just an int. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of

Re: Set string value

2008-07-09 Thread Sherm Pendley
On Wed, Jul 9, 2008 at 4:12 PM, Kevin Walzer <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to work through an exercise in the new Hillegass book and am > encountering difficulties. The app fails to build. The relevant code snippet > is below, with errors noted in the comments: > > -(IBAction)g

Re: Set string value

2008-07-09 Thread Ken Thomases
In addition to what Alex said... On Jul 9, 2008, at 3:12 PM, Kevin Walzer wrote: -(IBAction)getCount:(id)sender { NSString *string = [textField stringValue]; int *stringLength = [string length]; //warning: initialization makes pointer from integer without a cast This decl

Re: Making a text cell in a table editable

2008-07-09 Thread Jens Miltner
Am 9.7.08 um 22:05 schrieb Vitaly Ovchinnikov: I have a similar question. My NSTableView is bound to NSArrayController and I need to make cell editable immediately after adding new row. Rows added with default values and I need to allow user to edit them easy. I have an "Add" button that fires

Re: Making a text cell in a table editable

2008-07-09 Thread I. Savant
> - (void) onAdd: (id) sender > { >[arrayController insert:self]; // creates new object > >[tableView reloadData]; // <-- make table view reload it's data > >[tableView editColumn:...]; // maybe table view now knows about the new > row? > } This probably won't work as expected becaus

Re: Making a text cell in a table editable

2008-07-09 Thread I. Savant
> Same goes for -add: ... You'll need to force the array controller to > -rearrangeObjects before asking the tableView to reload. If you're > using Core Data, you'll probably also need to force a -fetch: before > calling -rearrangeObjects, though I don't know for sure. > > This forces the array c

Re: Set string value

2008-07-09 Thread Kevin Walzer
Sherm Pendley wrote: On Wed, Jul 9, 2008 at 4:12 PM, Kevin Walzer <[EMAIL PROTECTED]> wrote: Hello, I'm trying to work through an exercise in the new Hillegass book and am encountering difficulties. The app fails to build. The relevant code snippet is below, with errors noted in the comments:

Calling autorelease on CFAllocated objects?

2008-07-09 Thread Scott Andrew
I have a memory management question. I was looking at the QCTV example on from the quicktime site. It has some code that does the following: ICMCompressionSessionOptionsRef options; .. Do some work .. return (ICMCompressionSessionOptionsRef)[(id)options autorelease]; Can you do this with Co

Re: Redrawing CALayer subclass when super layer is scaled

2008-07-09 Thread Rick Mann
On Jul 9, 2008, at 12:59:33, David Duncan wrote: Given what it sounds like your content is, I might consider putting the whole canvas on a single or small set of tiled layers (they can be unbounded in size). Oh. I had thought making each individual part its own CALayer was most appropri

Re: Making a text cell in a table editable

2008-07-09 Thread Vitaly Ovchinnikov
In my case I just use [grid selectedRow], because NSTableView selects new row for me. Thanks, will try your method too. On Thu, Jul 10, 2008 at 12:49 AM, I. Savant <[EMAIL PROTECTED]> wrote: >> Same goes for -add: ... You'll need to force the array controller to >> -rearrangeObjects before asking

Re: Redrawing CALayer subclass when super layer is scaled

2008-07-09 Thread David Duncan
On Jul 9, 2008, at 2:08 PM, Rick Mann wrote: On Jul 9, 2008, at 12:59:33, David Duncan wrote: Given what it sounds like your content is, I might consider putting the whole canvas on a single or small set of tiled layers (they can be unbounded in size). Oh. I had thought making each indiv

Re: Why aren't my bindings firing?

2008-07-09 Thread Scott Anguish
On Jul 9, 2008, at 12:39 AM, Hamish Allan wrote: On Wed, Jul 9, 2008 at 2:43 AM, Scott Anguish <[EMAIL PROTECTED]> wrote: On Jul 8, 2008, at 11:33 AM, Hamish Allan wrote: Scott, for what it's worth, I really don't agree with you that Cocoa Bindings and KVB are "the same thing" or that "the

Re: how to get the status of network when the network is set disable.

2008-07-09 Thread Mike
The SCF documentation specifically says SC routines cannot be used to test *remote* reachability and should only be used to test whether a packet can *leave* the host. If this is all you need, then Michael's example will work. If you need to test remote reachability, you will need to devise som

Re: Quick look preview multipage rich text

2008-07-09 Thread Julien Jalon
If I understand correctly your point, it seems that in the first case, you use the direct to data print operation and in the second case, you use the direct to file print operation then read back the file in memory and send it to Quick Look. Both methods use QLPreviewRequestSetDataRepresentation().

Re: Calling autorelease on CFAllocated objects?

2008-07-09 Thread Wade Tregaskis
I have a memory management question. I was looking at the QCTV example on from the quicktime site. It has some code that does the following: ICMCompressionSessionOptionsRef options; .. Do some work .. return (ICMCompressionSessionOptionsRef)[(id)options autorelease]; Can you do this with

Spaces API issues

2008-07-09 Thread Chilton Webb
Hi, I realize there is no Spaces API, and that there likely won't be, per se. I have an app that my users want to behave differently based on the space it is currently accessed from. There is currently no way to find the current 'space', as I understand it, so that is out of the question (and

[Q] How to add "Find" feature for an NSTextView?

2008-07-09 Thread JongAm Park
Hello. I'm trying to write codes that searches a given text in an NSTextView. Currently, a window has an NSSearchField and an NSTextView. Some text will be loaded into the NSTextView and I expect users type into the NSSearchField to search some words in the NSTextView. I connected -(IBAction)

Re: Quick look preview multipage rich text

2008-07-09 Thread Jean-Daniel Dupas
Le 9 juil. 08 à 23:54, Julien Jalon a écrit : If I understand correctly your point, it seems that in the first case, you use the direct to data print operation and in the second case, you use the direct to file print operation then read back the file in memory and send it to Quick Look. Bo

Re: Calling autorelease on CFAllocated objects?

2008-07-09 Thread Adam R. Maxwell
On Wednesday, July 09, 2008, at 03:12PM, "Wade Tregaskis" <[EMAIL PROTECTED]> wrote: >> I have a memory management question. I was looking at the QCTV >> example on from the quicktime site. It has some code that does the >> following: >> >> ICMCompressionSessionOptionsRef options; >> >> .. >

Re: Quick look preview multipage rich text

2008-07-09 Thread Jean-Daniel Dupas
Le 10 juil. 08 à 00:20, Jean-Daniel Dupas a écrit : Le 9 juil. 08 à 23:54, Julien Jalon a écrit : If I understand correctly your point, it seems that in the first case, you use the direct to data print operation and in the second case, you use the direct to file print operation then read

Nesting IKImageBrowser GroupStyles

2008-07-09 Thread Ian
The grouping feature of IKImageBrowserView seems to be one of the least documented but most powerful features I've seen in a while. The only references I can find to using groups with IKImageBrowserView all point back to the scant info in the API docs. Anyway, after getting it working with mi

[Q] How to highlighted text remained as highlighted?

2008-07-09 Thread JongAm Park
Hello. With the Safari, when users search some text in a HTML document, the found text is remained highlighted until they click "Done" button. I tried using the showFindIndicatorForRage for NSTextView, but the yellow highlight just disappears after it blinks. Is there any way to leave it highl

Re: Receive notifications about frontmost application change

2008-07-09 Thread Bill Cheeseman
on 2008-07-09 1:58 PM, James Montgomerie at [EMAIL PROTECTED] wrote: >> You can register to observe the accessibility notifications >> AXApplicationActivated and AXApplicationDeactivated. These require >> you to >> register to observe a specific target application. Therefore, in >> order to >> cat

Re: [Q] How to highlighted text remained as highlighted?

2008-07-09 Thread Douglas Davidson
On Jul 9, 2008, at 4:07 PM, JongAm Park wrote: With the Safari, when users search some text in a HTML document, the found text is remained highlighted until they click "Done" button. I tried using the showFindIndicatorForRage for NSTextView, but the yellow highlight just disappears after it

Re: [Q] How to highlighted text remained as highlighted?

2008-07-09 Thread Seth Willits
On Jul 9, 2008, at 4:07 PM, JongAm Park wrote: With the Safari, when users search some text in a HTML document, the found text is remained highlighted until they click "Done" button. I tried using the showFindIndicatorForRage for NSTextView, but the yellow highlight just disappears after it b

Attributed menu titles

2008-07-09 Thread Kiel Gillard
Hi all, I have a menu of items whose titles are attributed strings. I have specified custom colours for parts of those strings. The documentation reads: If you do not set a text color for the attributed string, it is black when not selected, white when selected, and gray when disabled. Colored tex

Re: Calling autorelease on CFAllocated objects?

2008-07-09 Thread Wade Tregaskis
http://www.cocoabuilder.com/archive/message/cocoa/2008/7/5/212046 I wish this were better documented; the Search Kit docs show autorelease being sent to an SKDocumentRef, also, and that's always made me nervous (I think I actually sent feedback on that one a long time ago). I do apologise

Re: Nesting IKImageBrowser GroupStyles

2008-07-09 Thread thomas goossens
Hi Ian, On Jul 10, 2008, at 1:07 AM, Ian wrote: The grouping feature of IKImageBrowserView seems to be one of the least documented but most powerful features I've seen in a while. The only references I can find to using groups with IKImageBrowserView all point back to the scant info in the A

Re: Nesting IKImageBrowser GroupStyles

2008-07-09 Thread Ian
On 10 Jul 2008, at 00:49, thomas goossens wrote: Hi Ian, On Jul 10, 2008, at 1:07 AM, Ian wrote: The grouping feature of IKImageBrowserView seems to be one of the least documented but most powerful features I've seen in a while. It is possible to add one or more bezel groups inside a di

Re: Attributed menu titles

2008-07-09 Thread Brett Powley
On 10/07/2008, at 9:42 AM, Kiel Gillard wrote: Is there some way to provide a colour for the NSMenuItem's attributedTitle when the item is selected or disabled? For example, is there some key I can You could draw it yourself -- in 10.5 at least you can call setView on the NSMenuItem:

Re: Attributed menu titles

2008-07-09 Thread Peter Ammon
On Jul 9, 2008, at 4:42 PM, Kiel Gillard wrote: Hi all, I have a menu of items whose titles are attributed strings. I have specified custom colours for parts of those strings. The documentation reads: If you do not set a text color for the attributed string, it is black when not selected,

Crying Over CoreAnimation Center Rotation Math

2008-07-09 Thread Chilton Webb
Hi, I have an NSView subclass. I rotated it with -setFrameCenterRotation, and that works just fine. But now I want to scale it down 50%. If I use NSInsetRect() to shrink it, it flies off in a random direction. Worse, if I set another view to that view, or use the frame of the rotated view f

NSTableView prematurely posts selection changed notification

2008-07-09 Thread Graham Cox
When my app starts up, it opens a floating window containing a table view. As the table is brought to life from the Nib, it posts a "selection changed" notification to its delegate. At that time it hasn't had its data initialised from the data model so the selected row is 0. This causes an

Re: [Q] How to highlighted text remained as highlighted?

2008-07-09 Thread JongAm Park
Oh.. I see. Thank you for the information. On Jul 9, 2008, at 4:14 PM, Douglas Davidson wrote: On Jul 9, 2008, at 4:07 PM, JongAm Park wrote: With the Safari, when users search some text in a HTML document, the found text is remained highlighted until they click "Done" button. I tried usi

Setting the color label

2008-07-09 Thread Chris Idou
I came up with the code below to set the color label. Questions: 1) Is it really necessary to do a FSGetCatalogInfo first? I presume it is because otherwise the FSSetCatalogInfo wouldn't know what fields of catalogInfo.finderInfo it is supposed to be updating, or even what bits of catalogInfo.

Re: How to indent in NSOutlineView?

2008-07-09 Thread John Terranova
Did you try the levelForItem:, or frameOfCellAtColumn:row:, or both? Did they both have the same results? More information on what you have tried and what the results were would make it easier to help you. You haven't turned off [NSOutlineView indentationMarkerFollowsCell], have you? Is

Re: How to indent in NSOutlineView?

2008-07-09 Thread Aman Alam
The indentationMarkerFollowsCell is always reports one. I also try to indent disclosure button by setting setIndentationPerLevel in drawRow: rowIndex clipRect:clipRect method. It shows the button indented but the problem arises while clicking on it. It doesn't receive click properly. When we

Re: Making a text cell in a table editable

2008-07-09 Thread Vitaly Ovchinnikov
I replaced my code with this one: MyObject *p = [[MyObject alloc] init]; [arrayController addObject:p]; [p release]; [grid editColumn:0 row:[grid selectedRow] withEvent:nil selected:YES]; it works fine, NSTableView selects new row, -editColumn receives correct row number and starts editing. So, t

Re: Setting the color label

2008-07-09 Thread Adam R. Maxwell
On Jul 9, 2008, at 10:07 PM, Chris Idou wrote: I came up with the code below to set the color label. Questions: 1) Is it really necessary to do a FSGetCatalogInfo first? I presume it is because otherwise the FSSetCatalogInfo wouldn't know what fields of catalogInfo.finderInfo it is suppos

  1   2   >