Getting mouse moved events on overlay windows

2008-06-30 Thread Markus Spoettl
Hello List, I have a WebView with a transparent overlay window + custom view "attached" it to allow for custom overlay drawing on top of what the WebView displays. This works very well. However, I can't figure out a way to get -mouseMoved: messages on the overlay window's view. Tracking

Re: Implementing NSOutlineView autosaveExpandedItems with CoreData

2008-06-30 Thread Ian
On 1 Jul 2008, at 04:41, Andy Kim wrote: Hi Ian, I've got a CoreData object graph with an outline view showing instances of an NSManagedObject subclass called "Group". The Group class has the standard to-one relation 'parent' and to- many 'children'. The outline view is working perfectly.

Re: Alternative to NSDate's dateWithNaturalLanguageString: ?

2008-06-30 Thread David Arve
On Jun 30, 2008, at 5:14 PM, Jens Alfke wrote: On 30 Jun '08, at 12:29 AM, David Arve wrote: sqlite3_bind_int(sql_statement, 1, one_week); Shouldn't that be sqlite3_bind_double? The variable one_week is declared as double, and I'm pretty sure that seconds-since-1970 intervals are soon

Problem in Custom Window

2008-06-30 Thread Adil Saleem
Hi,   I have implemented a custom shaped window using technique described in sample code RoundTransparentWindow (make a borderless transparent window and place your image  using a customview on it).   It works quite fine when there are no controls on it. However, i am facing problem when i place

Problem in Custom Shaped Window

2008-06-30 Thread Adil Saleem
Hi,I have implemented a custom shaped window using technique described in sample code RoundTransparentWindow (make a borderless transparent window and place your image using a customview on it). It works quite fine when there are no controls on it. However, i am facing problem when i place a Co

Re: Flowcharts in Cocoa

2008-06-30 Thread Graham Cox
To be honest this is rather a large and open-ended question, a bit like "how do I program a computer?" ;-) Depending on what you want to do you might find a framework such as my own DrawKit useful, though I have to warn you it's probably not ideal for complete beginners with Cocoa. It will

Re: Implementing NSOutlineView autosaveExpandedItems with CoreData

2008-06-30 Thread Andy Kim
Hi Ian, I've got a CoreData object graph with an outline view showing instances of an NSManagedObject subclass called "Group". The Group class has the standard to-one relation 'parent' and to- many 'children'. The outline view is working perfectly. I've set autosaveExpandedItems to YES and w

Flowcharts in Cocoa

2008-06-30 Thread Matt Orr
Hi guys! I am very new to Cocoa, but not new to UNIX development. GUI programming is new to me, and I am tackling it heavily ;) I have a little assignment at work to create a simple application which charts a bunch of processes, much like OmniGraffle ( http://www.omnigroup.com/applications/omnigra

Re: [MEET] CocoaHeads Mac Developer Meetings

2008-06-30 Thread Apparao Mulpuri
Hi Steve, Do you have any plans to conduct this type meets in India? - Apparao Mulpuri. On Mon, Jun 30, 2008 at 11:51 AM, Stephen Zyszkiewicz <[EMAIL PROTECTED]> wrote: > Greetings, > > We have a few new chapters! > > CocoaHeads is an international Mac programmer's group. We specialize > in

Re: Alternative to NSDate's dateWithNaturalLanguageString: ?

2008-06-30 Thread Andrew Farmer
On 30 Jun 08, at 08:14, Jens Alfke wrote: On 30 Jun '08, at 12:29 AM, David Arve wrote: sqlite3_bind_int(sql_statement, 1, one_week); Shouldn't that be sqlite3_bind_double? The variable one_week is declared as double, and I'm pretty sure that seconds-since-1970 intervals are soon going to

Re: Core Data Entity Relationship -valueForKeyPath: question

2008-06-30 Thread Jamie Phelps
You're right. Someone off list pointed me in the right direction of NSNumber's -isEqualToNumber: method. Sorry for the noise, everyone! JP On Mon, Jun 30, 2008 at 9:42 PM, Quincey Morris <[EMAIL PROTECTED]> wrote: > > On Jun 30, 2008, at 19:01, Jamie Phelps wrote: > > I have a Core Data entity I

Re: Core Data Entity Relationship -valueForKeyPath: question

2008-06-30 Thread Quincey Morris
On Jun 30, 2008, at 19:01, Jamie Phelps wrote: I have a Core Data entity Item with a relationship "transaction." (It's actually a to-many relationship. I'll adjust the key when I migrate my Core Data model.) My question is about KVC. Can anyone help me understand why the following code alw

Core Data Entity Relationship -valueForKeyPath: question

2008-06-30 Thread Jamie Phelps
I have a Core Data entity Item with a relationship "transaction." (It's actually a to-many relationship. I'll adjust the key when I migrate my Core Data model.) My question is about KVC. Can anyone help me understand why the following code always returns YES? I know for a fact that some of

Re: PDFDocument subclass with an undo manager

2008-06-30 Thread Graham Cox
It won't redo because when it performs the undo, it is calling - initWithData: directly, and I take it from this snippet that initWithData: isn't recording the undo. You need to create a wrapper method for initWithData that contains the undo recording step, then make that method the target o

Re: Linking against /Dev/L/PrivateFrameworks/

2008-06-30 Thread Owen Yamauchi
I neglected to mention the specific error, but I figured there's only one error one might see on an import line. error: DevToolsCore/PBXFileType.h: No such file or directory Owen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not pos

Re: [MEET] CocoaHeads Mac Developer Meetings

2008-06-30 Thread Scott Ellsworth
On Sun, Jun 29, 2008 at 11:21 PM, Stephen Zyszkiewicz <[EMAIL PROTECTED]> wrote: > CocoaHeads is an international Mac programmer's group. We specialize > in Cocoa, but everything Mac programming related is welcome. > > Upcoming meetings: * Lake Forest, CA - Wednesday, July 09, 2008, 07:00 PM PST

Re: Why aren't my bindings firing?

2008-06-30 Thread Ron Lue-Sang
On Jun 30, 2008, at 2:53 PM, Hamish Allan wrote: On Mon, Jun 30, 2008 at 10:43 PM, Ron Lue-Sang <[EMAIL PROTECTED]> wrote: Yes! infoForBinding is what you should use to implement the logic in #1. [...] 2b) Implement the "read" logic yourself by implementing bind:. What puzzles me is tha

Re: Why aren't my bindings firing?

2008-06-30 Thread Michael Ash
On Mon, Jun 30, 2008 at 5:04 PM, Hamish Allan <[EMAIL PROTECTED]> wrote: > On Mon, Jun 30, 2008 at 3:56 PM, Michael Ash <[EMAIL PROTECTED]> wrote: > >> Although Apple's sample code shows overriding -bind:... to store >> information about the new binding, it doesn't look like this is >> necessary. Y

Table view tab order problem

2008-06-30 Thread Scott Ribe
Two table views with editable columns. On 10.4, tabbing works as I expected. On 10.5, tabbing out of the last cell of a row always goes to the next table view, not the next row of the current table view (when there is a next row). Is there an easy way to fix this? Or do I really have to hook into

Re: Process app.

2008-06-30 Thread Michael Hall
On Jun 30, 2008, at 3:44 PM, Ken Thomases wrote: More techniques: Technical Note TN2050: Observing Process Lifetimes Without Polling http://developer.apple.com/technotes/tn/tn2050.html Getting off-topic maybe but I did this from java. For example... CmdJHTML: terminated Firefox /Applications

Re: iPhone: Flip core animation performance with images in UIButtons

2008-06-30 Thread Richard Adams
Noted - thanks - I will come back in 11 days (or when appropriate) unless we feel cocoa for the iPhone is not for this list at that time. If someone is able to point me in the direction of a legitimate source of help that I'm allowed to go to feel free to point me in the right direction.

[moderator] Re: iPhone: Flip core animation performance with images in UIButtons

2008-06-30 Thread Scott Anguish
On Jun 30, 2008, at 6:53 PM, Richard Adams wrote: I'm in the process of learning Cocoa/Objective-C and I'm writing some stuff for the iPhone as an exercise. As stated in the non-disclosure agreement you accepted when you registered for the iPhone program, you are not allowed to talk about

Re: Connecting to non-standard HTTP ports with authorization

2008-06-30 Thread Jens Alfke
On 30 Jun '08, at 12:51 PM, Niklas Saers wrote: In the HTTP header I get back from the server I cannot see a domain, but then again I cannot see a realm either. How do I find the domain? In NTLM authentication, is domain the same as the DNS domain, or is it the same as the domain windows c

Implementing NSOutlineView autosaveExpandedItems with CoreData

2008-06-30 Thread Ian
Hi all, I've got a CoreData object graph with an outline view showing instances of an NSManagedObject subclass called "Group". The Group class has the standard to-one relation 'parent' and to-many 'children'. The outline view is working perfectly. I've set autosaveExpandedItems to YES and w

PDFDocument subclass with an undo manager

2008-06-30 Thread Kevin Ross
Hi everyone, I have a question that might seems a little silly. I have a PDFDocument subclass which can perform page impositions. I would also like to be able to undo the impositions. In the methods I have this when I make the change to the PDF: [[undoManager prepareWithInvocationTarget:

Re: iPhone: Flip core animation performance with images in UIButtons

2008-06-30 Thread Brady Duga
On Jun 30, 2008, at 3:53 PM, Richard Adams wrote: I'm in the process of learning Cocoa/Objective-C and I'm writing some stuff for the iPhone as an exercise. I am sure you are about to get a bunch of comments about the appropriateness of posting iPhone related questions on this list, but

iPhone: Flip core animation performance with images in UIButtons

2008-06-30 Thread Richard Adams
Hi All, I'm in the process of learning Cocoa/Objective-C and I'm writing some stuff for the iPhone as an exercise. I am writing a simple application based on the "Utility Application" iPhone Template with the latest SDK Beta 8. This is a simple 2 view application with a routine called "t

Re: Methods that return autoreleased objects?

2008-06-30 Thread Tom Bunch
On Jun 29, 2008, at 9:42 AM, Mike Ferris wrote: And, as long as we're on the topic... who can name the only other exceptional case for the "release only if you alloc,new, copy or retain" rule? (It's pretty old-school...) How about if you're implementing an initializer for a class cluster

Re: Core animation

2008-06-30 Thread Brian Christensen
Am Jun 30, 2008 um 07:04 schrieb Papa-Raboon: I was wondering if many of you have had a go at core animation yet? I am personally looking at making a piece of text fade in and fade out as a confirmation that something worked in my latest project. Currently I am just popping a bit of text on

Re: Linking against /Dev/L/PrivateFrameworks/

2008-06-30 Thread Jean-Daniel Dupas
Le 30 juin 08 à 23:10, Owen Yamauchi a écrit : Yes, I know, I shouldn't be linking against an Apple private framework, but trust me, there's a reason for it. Anyway, I'm having trouble building the project. I dragged my private framework (DevToolsCore.framework) into Xcode and left all the def

Re: Why aren't my bindings firing?

2008-06-30 Thread Hamish Allan
On Mon, Jun 30, 2008 at 10:43 PM, Ron Lue-Sang <[EMAIL PROTECTED]> wrote: > Yes! infoForBinding is what you should use to implement the logic in #1. > [...] > 2b) Implement the "read" logic yourself by implementing bind:. What puzzles me is that NSTextField doesn't seem to do either of these, yet

Re: Newbie question: Timers

2008-06-30 Thread j o a r
On Jun 30, 2008, at 2:36 PM, Matthew Youney wrote: In the VS environment, there is a “timer” control that can be dropped onto a form, and will generate timer events every X milliseconds. How would I impliment similar functionality in Cocoa, or what would you gurus suggest that I look int

Re: Newbie question: Timers

2008-06-30 Thread Daniel Richman
Use this: NSTimer *myTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 // number of seconds as double target:self // targer selector:@selector(checkTimer:) // selector to call (parameter is the timer) userInfo:nil // I don't use any user info repeats:YES]; // whether the timer repeats or is o

Scaled Printing

2008-06-30 Thread John Nairn
I cannot find any mention of what a view needs to do to support scaled printing, so I thought it would be automatic as long as I adjust things for the current scaling. Unfortunately, the view always prints at 100% despite changing the scale setting in a page layout dialog. Below is all the

Re: Why aren't my bindings firing?

2008-06-30 Thread Ron Lue-Sang
Sorry, I haven't read every message in this thread, but I think I can answer the original question [[self bar] bind:@"title" toObject:ivar_controller withKeyPath:@"selection.displayName" options:nil]; Now here's the thing: if I call setDisplayName: on Foo, it calls Bar's setTitle: metho

Newbie question: Timers

2008-06-30 Thread Matthew Youney
Hello everyone: I have another question that is based on my Microsoft background (yes I am ashamed). In the VS environment, there is a “timer” control that can be dropped onto a form, and will generate timer events every X milliseconds. How would I impliment similar functionality in Cocoa, or wha

Re: garbage collection and NSConnection

2008-06-30 Thread Hamish Allan
On Mon, Jun 30, 2008 at 9:10 PM, eblu <[EMAIL PROTECTED]> wrote: >hostname = [sender hostName]; >socket = (NSSocketPort*)[[NSSocketPortNameServer sharedInstance] > portForName:@"BKOtherPort" host:hostname]; >connection = [NSConnection connectionWithReceivePort: nil sendPort

Re: Style Question: apology and correction

2008-06-30 Thread Rob Ross
On Jun 27, 2008, at 10:25 PM, Jens Alfke wrote: On 27 Jun '08, at 9:45 PM, Rob Ross wrote: Btw, how many people realize this convention comes from the early K&R C book, and the *only* reason they wrote it this way was to minimize the number of lines of text their examples would take up

Linking against /Dev/L/PrivateFrameworks/

2008-06-30 Thread Owen Yamauchi
Yes, I know, I shouldn't be linking against an Apple private framework, but trust me, there's a reason for it. Anyway, I'm having trouble building the project. I dragged my private framework (DevToolsCore.framework) into Xcode and left all the default settings alone. However, when I try to build,

Re: Why aren't my bindings firing?

2008-06-30 Thread Hamish Allan
On Mon, Jun 30, 2008 at 3:56 PM, Michael Ash <[EMAIL PROTECTED]> wrote: > Although Apple's sample code shows overriding -bind:... to store > information about the new binding, it doesn't look like this is > necessary. You can simply use -infoForBinding: to obtain the info > dictionary, extract the

Re: Splitting an NSAttributedString across different NSRects of a given size

2008-06-30 Thread Keith Blount
Thank you, Douglas - multiple containers it is then. All the best, Keith - Original Message From: Douglas Davidson <[EMAIL PROTECTED]> To: Keith Blount <[EMAIL PROTECTED]> Cc: cocoa-dev@lists.apple.com Sent: Monday, June 30, 2008 9:34:19 PM Subject: Re: Splitting an NSAttributedString acr

Re: Process app.

2008-06-30 Thread Ken Thomases
On Jun 30, 2008, at 10:53 AM, Jean-Daniel Dupas wrote: Le 30 juin 08 à 17:27, Jens Alfke a écrit : On 30 Jun '08, at 6:23 AM, Толя Макаров wrote: Yes, that's clear, but how to get this list? I have found 2 ways: ps -ef and [[NSWorkspace sharedWorkspace] launchedApplications]. There are u

Re: Splitting an NSAttributedString across different NSRects of a given size

2008-06-30 Thread Douglas Davidson
On Jun 30, 2008, at 1:19 PM, Keith Blount wrote: I am creating a view for printing index cards that basically takes an array of attributed strings and prints each one on a 5 x 3 card. However, if an attributed string is too long for one card, I want to wrap it across two cards or more (how

Re: garbage collection and NSConnection

2008-06-30 Thread Jean-Daniel Dupas
Le 30 juin 08 à 22:19, Jean-Daniel Dupas a écrit : Le 30 juin 08 à 22:10, eblu a écrit : Hi Chris, I'm not terribly sure what you are asking for here. From my experience (limited experience admittedly) theres really only one way to use NSConnection. its a pretty elegant class, which is s

Splitting an NSAttributedString across different NSRects of a given size

2008-06-30 Thread Keith Blount
Hi, First of all, I think I'm being a bit brain-dead here as I just *know* I've had to do something similar to this in the past, or have seen something similar to it at least, elsewhere, but I'm obviously using the wrong search terms in Cocoabuilder and Cocoadev and my memory is obviously fadin

Re: garbage collection and NSConnection

2008-06-30 Thread Jean-Daniel Dupas
Le 30 juin 08 à 22:10, eblu a écrit : Hi Chris, I'm not terribly sure what you are asking for here. From my experience (limited experience admittedly) theres really only one way to use NSConnection. its a pretty elegant class, which is simple, and works as expected, except for when garbag

Re: garbage collection and NSConnection

2008-06-30 Thread eblu
Hi Chris, I'm not terribly sure what you are asking for here. From my experience (limited experience admittedly) theres really only one way to use NSConnection. its a pretty elegant class, which is simple, and works as expected, except for when garbage collection is enabled. heres what I

[Cocoa] Subclassing NSMutableURLRequest

2008-06-30 Thread Alexander von Below
Hello List, I have searched the archives, but did not really find an answer to my question, even though the title was the same... I want to subclass NSMutableURLRequest, in order to create my own, specialized URLRequest (namely, XML-RPC). I thought that was a smart idea. As NSURLRequest

Re: RFC822 date-string to NSDate

2008-06-30 Thread Kyle Sluder
On Mon, Jun 30, 2008 at 3:14 PM, Steve Byan <[EMAIL PROTECTED]> wrote: > That's a bummer, because RFC822 dates have some optional elements and so > don't conform to a fixed format. I hoped that the default parsing was smart. Well it looks like the RFC822 date grammar is context-free so implementin

Re: Connecting to non-standard HTTP ports with authorization

2008-06-30 Thread Niklas Saers
Hi Jens, thanks for the reference and the domain property, I wasn't aware of that. In the HTTP header I get back from the server I cannot see a domain, but then again I cannot see a realm either. How do I find the domain? In NTLM authentication, is domain the same as the DNS domain, or is

Re: RFC822 date-string to NSDate

2008-06-30 Thread Steve Byan
On Jun 30, 2008, at 2:50 PM, Andy Lee wrote: I'm not too familiar with NSDateFormatter. Do you need to call - setDateFormat:? Ah, thanks, I missed the statement hidden on page 23 of "Data Formatting Programming Guide for Cocoa", which says: "You use the format string is used to specify b

Re: garbage collection and NSConnection

2008-06-30 Thread John Pannell
Hi there- I encountered the same issue some months ago, and posted my questions to this list. An Apple engineer did reply off-list that this was a known issue with garbage collection and that there was no known workaround at that time. I was just playing with GC for fun and reverted back

Re: RFC822 date-string to NSDate

2008-06-30 Thread Nick Zitzmann
On Jun 30, 2008, at 12:35 PM, Steve Byan wrote: I'm having trouble grokking NSDateFormatter on OS X 10.4. Does it support RFC822-style dates? It should, but you'll have to make your own format string to do that. NSDateFormatter does make some guesses at the format when getting the date

Re: RFC822 date-string to NSDate

2008-06-30 Thread Andy Lee
I'm not too familiar with NSDateFormatter. Do you need to call - setDateFormat:? --Andy On Jun 30, 2008, at 2:35 PM, Steve Byan wrote: I'm having trouble grokking NSDateFormatter on OS X 10.4. Does it support RFC822-style dates? I'm parsing an XML document; here's the pertinent code snipp

RFC822 date-string to NSDate

2008-06-30 Thread Steve Byan
I'm having trouble grokking NSDateFormatter on OS X 10.4. Does it support RFC822-style dates? I'm parsing an XML document; here's the pertinent code snippet: NSLog(@"observation_time_rfc822 element end"); NSDateFormatter * dateFormatter = [[NSDateFormatter alloc] init];

Re: [NSMutableAttributedString] How is NSBaseURLDocumentOption supposed to work?

2008-06-30 Thread Douglas Davidson
On Jun 28, 2008, at 4:37 AM, Stéphane Sudre wrote: OK, someone kindly pointed me off-list that I was using a NSString instead of a NSURL. I'm still wondering which URL is supposed to be used: - the document itself or - the parent folder of the document This is the URL that will be passe

Re: Responder Chain and NSViewController in non-doc applications

2008-06-30 Thread Cathy Shive
Hi Jerry, NSViewController is a subclass of NSResponder, but there is nothing provided in Cocoa that automatically includes the View Controllers in your appliation's window's Responder Chain. You won't find any documentation that will show you how NSViewController is included in the Resp

Re: Responder Chain and NSViewController in non-doc applications

2008-06-30 Thread Jonathan Dann
On 30 Jun 2008, at 17:52, Jerry Isdale wrote: I'm trying to understand a bit more about the Responder chain, especially how it relates to regular (non-document) applications using NSView and NSViewController added into the View Hierarchy. Katidev.com has a nice series of articles on the rela

Re: Responder Chain and NSViewController in non-doc applications

2008-06-30 Thread Jerry Isdale
On Jun 30, 2008, at 10:12 AM, j o a r wrote: On Jun 30, 2008, at 9:52 AM, Jerry Isdale wrote: Again, the NSViewController doesnt appear in the responder chain, unless it was designated by the initial Event Responder. If it was designated, but doesnt respond, what happens? An Error or doe

garbage collection and NSConnection

2008-06-30 Thread eblugamma
hey, I have a project that uses Bonjour for some of its communication, theres a server and a client, and I was having tremendous difficulty getting it to work, pouring and pouring over my code, only to discover some weeks later that for some odd reason, NSConnections do not work when the p

Re: Creating AppControllers in InterfaceBuilder 3.1

2008-06-30 Thread Owen Yamauchi
On Mon, Jun 30, 2008 at 7:27 AM, j o a r <[EMAIL PROTECTED]> wrote: > The thinking here is indeed that Xcode handles the creation of classes, > while IB handles instances of classes and their configuration. IB can actually create classes. In the Identity inspector, after creating a generic NSObjec

Re: Creating AppControllers in InterfaceBuilder 3.1

2008-06-30 Thread Devon Ferns
You shouldn't even have to drag it into IB. IB should pick up any new classes you create in XCode. Devon Tommy Nordgren wrote: On 30 jun 2008, at 16.14, [EMAIL PROTECTED] wrote: Hi I'm writing my first project in Leopard and can't figure out how to accomplish the old "Subclass NSObject/G

Re: Responder Chain and NSViewController in non-doc applications

2008-06-30 Thread j o a r
On Jun 30, 2008, at 9:52 AM, Jerry Isdale wrote: Again, the NSViewController doesnt appear in the responder chain, unless it was designated by the initial Event Responder. If it was designated, but doesnt respond, what happens? An Error or does it go back to the responder chain? I'm no

Re: Some advice re. "saving" a variable so it is accessible to all classes/methods

2008-06-30 Thread Owen Yamauchi
On Mon, Jun 30, 2008 at 9:46 AM, Michael Kaye <[EMAIL PROTECTED]> wrote: > So my question (finally) is where do I store the sessionid variable so it is > accessible through out all classes and for as long as the app is running? > > My current approach is to save the value in an Extern NSString but

Re: NSDateComponents question

2008-06-30 Thread mmalc crawford
On Jun 30, 2008, at 9:45 AM, Jason Wiggins wrote: 5 NSDateComponents *comps = [[NSDateComponents alloc] init]; 6 NSDateComponents *components = [[NSDateComponents alloc] init]; Why are you creating these objects -- you're just leaking them? 7 unsigned unitFlags = NSYearCalendarUn

Responder Chain and NSViewController in non-doc applications

2008-06-30 Thread Jerry Isdale
I'm trying to understand a bit more about the Responder chain, especially how it relates to regular (non-document) applications using NSView and NSViewController added into the View Hierarchy. Katidev.com has a nice series of articles on the related issue for Document based applications. (It

Some advice re. "saving" a variable so it is accessible to all classes/methods

2008-06-30 Thread Michael Kaye
Hi all, I hope you can offer a newbie some advice. I've been reading and reading the Design patterns documentation but have got myself somewhat confused. I hope if I explain what I'm trying to achieve someone can offer me some advice. Basically I have an application that interrogates a we

NSDateComponents question

2008-06-30 Thread Jason Wiggins
Hi everyone, Since NSCalendarDate is going to be deprecated in the future, I've started playing with NSDateComponents. I have a question regarding a problem I'm having. I'm getting a wacky date returned at line 15. I'm expecting it to add -3 to the current date, but I get something *way*

[OT] Re: Style Question

2008-06-30 Thread Steve Byan
On Jun 28, 2008, at 1:25 AM, Jens Alfke wrote: On 27 Jun '08, at 9:45 PM, Rob Ross wrote: Btw, how many people realize this convention comes from the early K&R C book, and the *only* reason they wrote it this way was to minimize the number of lines of text their examples would take up o

Re: trackmouse problems in Leopard

2008-06-30 Thread Corbin Dunn
On Jun 30, 2008, at 7:24 AM, Moray Taylor wrote: Yes! it did! Thanks a lot, I'm not sure if I'd ever have figured hat one out. I highly recommend reading the AppKit release notes, which covers things like this problem. http://developer.apple.com/releasenotes/Cocoa/AppKit.html --corbin

[ANN] CocoaHeads Frankfurt

2008-06-30 Thread Torsten Curdt
http://upcoming.yahoo.com/event/857251 Hope to see you there! cheers -- Torsten ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)

Re: Process app.

2008-06-30 Thread Jean-Daniel Dupas
Le 30 juin 08 à 17:27, Jens Alfke a écrit : On 30 Jun '08, at 6:23 AM, Толя Макаров wrote: Yes, that's clear, but how to get this list? I have found 2 ways: ps -ef and [[NSWorkspace sharedWorkspace] launchedApplications]. There are underlying APIs that tools like ps and top use; you can

NSBroswer Column highlight

2008-06-30 Thread Micha Fuhrmann
I'm implementing DnD in an NSBrowser for 10.4. The Problem I have is to enable the Column selection (Blue line around the column), to show to the user that the drag-in is indeed working + its destination. I'm thinking in the line of using – draggingUpdated from my NSMatrix subclass used in

Re: Connecting to non-standard HTTP ports with authorization

2008-06-30 Thread Jens Alfke
Hm. I've never used NTLM authentication. Have you read the "Handling Authentication" section of the CFNetwork Programming Guide? It mentions that NTLM auth requires a domain as well as a username/ password. But I'm not sure how to configure that using the Obj-C wrapper APIs. —Jens_

Re: Process app.

2008-06-30 Thread Jens Alfke
On 30 Jun '08, at 6:23 AM, Толя Макаров wrote: Yes, that's clear, but how to get this list? I have found 2 ways: ps -ef and [[NSWorkspace sharedWorkspace] launchedApplications]. There are underlying APIs that tools like ps and top use; you can call those. I'm not familiar with the details,

Re: initWithFrame deosn't get called

2008-06-30 Thread Micha Fuhrmann
Thanks, that was it. Micha On 30 juin 08, at 16:27, Charles Steinman wrote: --- On Mon, 6/30/08, Micha Fuhrmann <[EMAIL PROTECTED]> wrote: I'm trying to registerForDraggedTypes a NSMatrix subclass that's used in a NSBrowser. When I override init or initWithFrame in my Matrix class in manner t

Re: Alternative to NSDate's dateWithNaturalLanguageString: ?

2008-06-30 Thread Jason Wiggins
Funnily enough, I've just found and been playing with NSCalendarDate and was unaware of the discouragement of using this class until now, thanks Jens. But it's not deprecated *yet* From the docs: Important: Use of NSCalendarDate strongly discouraged. It is not deprecated yet, however it may

Re: Alternative to NSDate's dateWithNaturalLanguageString: ?

2008-06-30 Thread Jens Alfke
On 30 Jun '08, at 12:29 AM, David Arve wrote: sqlite3_bind_int(sql_statement, 1, one_week); Shouldn't that be sqlite3_bind_double? The variable one_week is declared as double, and I'm pretty sure that seconds-since-1970 intervals are soon going to overflow a (signed) 32-bit int, if they

Re: Why aren't my bindings firing?

2008-06-30 Thread Michael Ash
On Mon, Jun 30, 2008 at 12:38 AM, Hamish Allan <[EMAIL PROTECTED]> wrote: > On Mon, Jun 30, 2008 at 5:33 AM, Charles Srstka > <[EMAIL PROTECTED]> wrote: > >> Wait, what? Okay, that contradicts the understanding that I had come to... >> so the built-in views establish two-way bindings *without* over

Re: Creating AppControllers in InterfaceBuilder 3.1

2008-06-30 Thread Jean-Daniel Dupas
Le 30 juin 08 à 16:20, Tommy Nordgren a écrit : On 30 jun 2008, at 16.14, [EMAIL PROTECTED] wrote: Hi I'm writing my first project in Leopard and can't figure out how to accomplish the old "Subclass NSObject/Generate Files/Instantiate" series of steps in Interface Builder 3.1. I'm sur

Re: Creating AppControllers in InterfaceBuilder 3.1

2008-06-30 Thread kentozier
Perfect!. Thanks Joar -- Original message -- From: j o a r <[EMAIL PROTECTED]> > > On Jun 30, 2008, at 7:14 AM, [EMAIL PROTECTED] wrote: > > > I'm writing my first project in Leopard and can't figure out how to > > accomplish the old > > "Subclass NSObject/Gene

Re: Creating AppControllers in InterfaceBuilder 3.1

2008-06-30 Thread j o a r
On Jun 30, 2008, at 7:14 AM, [EMAIL PROTECTED] wrote: I'm writing my first project in Leopard and can't figure out how to accomplish the old "Subclass NSObject/Generate Files/Instantiate" series of steps in Interface Builder 3.1. What you typically do is to create the subclass in Xcode, a

Re: initWithFrame deosn't get called

2008-06-30 Thread Charles Steinman
--- On Mon, 6/30/08, Micha Fuhrmann <[EMAIL PROTECTED]> wrote: > I'm trying to registerForDraggedTypes a NSMatrix > subclass that's used > in a NSBrowser. When I override init or initWithFrame in my > Matrix > class in manner to include registerForDraggedTypes none of > the two > methods get

Re: trackmouse problems in Leopard

2008-06-30 Thread Moray Taylor
Yes! it did! Thanks a lot, I'm not sure if I'd ever have figured hat one out. Moray --- On Sat, 28/6/08, Andy Kim <[EMAIL PROTECTED]> wrote: > From: Andy Kim <[EMAIL PROTECTED]> > Subject: Re: trackmouse problems in Leopard > To: [EMAIL PROTECTED] > Cc: Cocoa-dev@lists.apple.com > Date: Saturd

RE: Style Question (Robert Claeson)

2008-06-30 Thread john darnell
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Roni Music > Sent: Saturday, June 28, 2008 1:13 PM > To: cocoa-dev@lists.apple.com > Subject: Re: Style Question (Robert Claeson) > > the bottom of the page below has one opinion why one style is su

Re: Creating AppControllers in InterfaceBuilder 3.1

2008-06-30 Thread Tommy Nordgren
On 30 jun 2008, at 16.14, [EMAIL PROTECTED] wrote: Hi I'm writing my first project in Leopard and can't figure out how to accomplish the old "Subclass NSObject/Generate Files/Instantiate" series of steps in Interface Builder 3.1. I'm sure Interface Builder has a new way to do that but I

Creating AppControllers in InterfaceBuilder 3.1

2008-06-30 Thread kentozier
Hi I'm writing my first project in Leopard and can't figure out how to accomplish the old "Subclass NSObject/Generate Files/Instantiate" series of steps in Interface Builder 3.1. I'm sure Interface Builder has a new way to do that but I can't find it. Any help appreciated __

Re: Core animation

2008-06-30 Thread Bill Dudney
Text is tricky because of the anti-aliasing issues. Broaden your search though there are tons of examples on how to fade a layer in and out of a scene (apple's samples, my blog, others as well). Basically though - parent view needs to be layer backed (via setWantsLayer:YES) - create a layer

Re: initWithFrame deosn't get called

2008-06-30 Thread Graham Cox
Try doing it from awakeFromNib: I had an issue where registerForDraggedTypes wasn't working if called too early, though I forget the details exactly. Moving the registration to awakeFromNib (or even windowControllerDidLoadNib if you have an NSWindowController) fixed it so I didn't investiga

RE: Process app.

2008-06-30 Thread Толя Макаров
Yes, that's clear, but how to get this list? I have found 2 ways: ps -ef and [[NSWorkspace sharedWorkspace] launchedApplications]. 1 way shows in the list loginwindow.app, when it's on and doesn't work. 2 way doesn't show this application at all. What would you suggest? ___

initWithFrame deosn't get called

2008-06-30 Thread Micha Fuhrmann
Hi everyone, I'm trying to registerForDraggedTypes a NSMatrix subclass that's used in a NSBrowser. When I override init or initWithFrame in my Matrix class in manner to include registerForDraggedTypes none of the two methods get called. [Browser setMatrixClass:[BrowserMatrixView class]];

Re: Connecting to non-standard HTTP ports with authorization

2008-06-30 Thread Niklas Saers
Just a little update, -1012 is NSURLErrorUserCancelledAuthentication, and that caught my suspicioun that perhaps data got sent anyway. So fire up Wireshark, and sure enough, my request is sent: GET /Pages/Default.aspx HTTP/1.1 User-Agent: (myApp/0.1 (myApp) Accept: */* Accept-Language: en-us

Re: Process app.

2008-06-30 Thread Mike Bellerby
Hi If your process is running as root, you can get a list of all current processes. Cheers Mike On 30 Jun 2008, at 10:07, Толя Макаров wrote: HI. Cocoa, Obj - C. How can know a another program is started? The process is started up not from my program. I check if is started loginwindow.ap

Core animation

2008-06-30 Thread Papa-Raboon
Hi All, I was wondering if many of you have had a go at core animation yet? I am personally looking at making a piece of text fade in and fade out as a confirmation that something worked in my latest project. Currently I am just popping a bit of text on screen using: [succcessFlag setStringValue:@"

Connecting to non-standard HTTP ports with authorization

2008-06-30 Thread Niklas Saers
Hi, I'm trying to connect to a server that requires HTTP authentication and that lives on a non-standard port. I've written a little bit of code that works great when it tries to connect to a server on port 80, but I get an error when connecting to the non-standard port, and I get it witho

Process app.

2008-06-30 Thread Толя Макаров
HI. Cocoa, Obj - C. How can know a another program is started? The process is started up not from my program. I check if is started loginwindow.app And it is possible to catch event that loginwindow.app was closed? Give me example, please.

Alternative to NSDate's dateWithNaturalLanguageString: ?

2008-06-30 Thread David Arve
Hi, I have a sqlite3 database storing some time information as the time interval since 1970 as a REAL type. To get the total time interval since for example the beginning of this week I use something like the following. const char *sql = "SELECT SUM(end - begin) FROM table WHERE begin>?"; sqlite3

Re: viewing method calls

2008-06-30 Thread Owen Yamauchi
On Sun, Jun 29, 2008 at 10:18 PM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: > > On Jun 29, 2008, at 3:25 PM, John Murphy wrote: > >> How do I view the messages (method calls) that are sent during the loading >> of an application? > > > You can do this using a profiler, such as Shark. A DTrace scrip