Re: Avoiding mutual retain cycles

2008-07-21 Thread Markus Spoettl
On Jul 21, 2008, at 11:20 PM, Quincey Morris wrote: Call me a retro coward, but I absolutely dislike the idea of GC. I just don't see the point of it given the complicated implications it can have. But I hope you do see the irony of that last statement, in the context of this thread. I

Re: Avoiding mutual retain cycles

2008-07-21 Thread Quincey Morris
On Jul 21, 2008, at 20:27, Markus Spoettl wrote: Call me a retro coward, but I absolutely dislike the idea of GC. I just don't see the point of it given the complicated implications it can have. But I hope you do see the irony of that last statement, in the context of this thread. FWIW,

Re: passing argument 1 of 'stringWithFormat:' makes pointer from integer without a cast [SOLVED]

2008-07-21 Thread Michael Swan
Aron & Ken, Yes thank you both that has been driving me crazy mostly because I knew it was something stupid like that. Thank you, Mike Swan "Change itself is not painful it is resistance to change that causes pain." ___ Cocoa-dev mailing list (C

Re: passing argument 1 of 'stringWithFormat:' makes pointer from integer without a cast

2008-07-21 Thread Ken Ferry
The parentheses are not correct in that position. You're using the C comma operator (http://www.eskimo.com/~scs/cclass/int/sx4db.html) and passing one argument to stringWithFormat:, which is the count of the array. That isn't a pointer. -Ken On Mon, Jul 21, 2008 at 9:23 PM, Michael Swan <[EMAIL

Re: passing argument 1 of 'stringWithFormat:' makes pointer from integer without a cast

2008-07-21 Thread Aron Nopanen
I think the parens around the argument to stringWithFormat: are causing the compiler to interpret the comma as a C comma operator, which means the result of the first expression (your format string) is ignored, and the result of the second expression ([array count]) is treated as the result

passing argument 1 of 'stringWithFormat:' makes pointer from integer without a cast

2008-07-21 Thread Michael Swan
So I have done the standard Google search and clean all targets but neither has helped. I have the following two lines of code: NSLog(@"array count = %i",[array count]); // This works just fine NSString *string = [NSString stringWithFormat:(@"array count = %i", [array count

Re: Avoiding mutual retain cycles

2008-07-21 Thread Marcel Weiher
On Jul 21, 2008, at 13:03 , Philippe Mougin wrote: Le 21 juil. 08 à 20:50, Markus Spoettl a écrit : I'm wondering if there is a general rule or mechanism that suggests what to do in such a case. For instance, how are delegates implemented in AppKit, are they retained? If so, when are they

Re: Avoiding mutual retain cycles

2008-07-21 Thread Markus Spoettl
On Jul 21, 2008, at 7:49 PM, Andreas Mayer wrote: I don't know why you'd think the collection view might own the item's view. You set the view for the view item, so the hierarchy seems to be quite clear. (The collection view *might* retain the view too. That's an implementation detail.) We

Re: Avoiding mutual retain cycles

2008-07-21 Thread Michael Ash
On Mon, Jul 21, 2008 at 11:24 PM, Markus Spoettl <[EMAIL PROTECTED]> wrote: > On Jul 21, 2008, at 7:23 PM, Michael Ash wrote: >> >> Without investigating things more deeply, just from the basic stuff I >> know about the classes in question, I'd assume that the >> NSCollectionView owns the NSCollect

linking NSArrayController and Undo manager

2008-07-21 Thread Todd Heberlein
Is there a way to link a controller (e.g., the NSArrayController) to my NSDocument's NSUndoManager without having to add a bunch of code to my NSDocument subclass? For example, in Hillegass's book, the first example of RaiseMan (Chap 8) has a nice clean design that lets the NSArrayControlle

Re: Avoiding mutual retain cycles

2008-07-21 Thread Andreas Mayer
Am 21.07.2008 um 22:02 Uhr schrieb Markus Spoettl: For example NSCollectionView, NSCollectionViewItem and its view. One may or may not suspect the NSCollectionViewItem owns the corresponding view. It may as well not own it and instead the NSCollectionView owns both. I don't know why you'

Re: Avoiding mutual retain cycles

2008-07-21 Thread Markus Spoettl
On Jul 21, 2008, at 1:03 PM, Philippe Mougin wrote: In the general case, there is no rule or mechanism to deal with retain cycles other than implementing something equivalent to a garbage collector. In some situations, however, the specific semantics and life-cycle of the objects you are dea

Re: Crash drawing shadows

2008-07-21 Thread Ken Ferry
Sounds like it's probably a bug! If not, and you can make a test app that shows the crash, then you'll probably get the bug back with an explanation as to what you're doing wrong. -Ken On Mon, Jul 21, 2008 at 7:59 PM, Graham Cox <[EMAIL PROTECTED]> wrote: > Having restarted and trying it again, i

Re: Avoiding mutual retain cycles

2008-07-21 Thread Markus Spoettl
On Jul 21, 2008, at 7:23 PM, Michael Ash wrote: Without investigating things more deeply, just from the basic stuff I know about the classes in question, I'd assume that the NSCollectionView owns the NSCollectionViewItems and the views, and the NSCollectionViewItems would also own the views. Wher

Re: Breakpoints for CG* functions

2008-07-21 Thread Ken Ferry
Try CGPostError. The other suggestions are good too. -Ken On Mon, Jul 21, 2008 at 2:54 PM, Sean McBride <[EMAIL PROTECTED]> wrote: > On 7/21/08 9:44 PM, Moray Taylor said: > >>Hi there, >> >>I'm getting a lot of errors like >> >>: CGContextMoveToPoint: invalid context >> >>but my usual [NSExcept

Re: Crash drawing shadows

2008-07-21 Thread Graham Cox
Having restarted and trying it again, it now crashes with EXC_BAD_ACCESS with the same stack trace. I guess something was not running right. Graham What was the specific kind of crash (e.g. EXC_BAD_ACCESS)? ___ Cocoa-dev mailing list (Cocoa-dev

Re: How to receive my own crash reports?

2008-07-21 Thread Andreas Mayer
Am 21.07.2008 um 23:25 Uhr schrieb Torsten Curdt: But there is also http://vafer.org/gitweb/FeedbackReporter.git Could you please include the source with the download? Sure. No worries. Or is including the download URL enough? Of course. Thank you! Andreas _

Re: Crash drawing shadows

2008-07-21 Thread Graham Cox
I say crash, it doesn't actually say what caused gdb to trigger, but it's the same stack trace every time. If I run under the debugger initially, it crashes as usual, but things enter a very strange state where the entire machine becomes very unresponsive and slow, the fans ramp up to maxim

Re: Did I reinvent the wheel?

2008-07-21 Thread Colin Cornaby
I've written a very similar framework for MySQL, and am gearing up to write one for Postgresql, so here's my opinion... (Apologies if one of these has already been addressed, or you've already looked at adding the feature...) • Write a table controller class. You can instantiate them in IB

Re: Crash drawing shadows

2008-07-21 Thread Ken Thomases
On Jul 21, 2008, at 9:01 PM, Graham Cox wrote: Stack trace: #0 0x940101fc in sseCGSFill8by1 #1 0x93d89107 in ripl_CreateMask #2 0x93d8d47f in RIPLayerSymmetricConvolve #3 0x93d8dc0b in RIPLayerGaussianBlur #4 0x93da795a in rips_s_BltShape #5 0x93d74939 in ripc_Rend

Re: Avoiding mutual retain cycles

2008-07-21 Thread Michael Ash
On Mon, Jul 21, 2008 at 4:02 PM, Markus Spoettl <[EMAIL PROTECTED]> wrote: >>> But there are still cases where it is unknown which of the objects is >>> going to be released first >> >> Care to name one? > > For example NSCollectionView, NSCollectionViewItem and its view. One may or > may not suspe

Crash drawing shadows

2008-07-21 Thread Graham Cox
I think I've run into a bug in the low-level shadow drawing code in Quartz. Can anyone confirm? This happens pretty repeatably when I have a shadow set for a path (stroke or fill, doesn't matter) and the destination context is just a 1x1 bitmap image. This crops up as part of my hit-testing

Re: set posterImage in QTKit?

2008-07-21 Thread douglas welton
Vince, use the -setAtrribute:forKey: method with the QTMoviePosterTimeAttribute key and a value that is the current frames QTTime later, douglas On Jul 21, 2008, at 6:55 PM, vince wrote: Thanks , Is there a Cocoa method to set and save the current frame of a QT Movie as the poster fr

Re: Read/Write to info.plist's LSEnvironment

2008-07-21 Thread Colin Cornaby
iPhone apps are signed (so are some Mac OS X apps). Modifying a signed app's Info.plist can cause things to go haywire. On the iPhone, it can cause the app to not work at all. Don't modify your own info.plist. It's the Apple recommended way. On Jul 21, 2008, at 10:32 AM, Lee, Frederick wrote

Re: StopWatch Application Help

2008-07-21 Thread Scott Ribe
> Additionally, add [timer invalidate] to your -windowWillClose or - > dealloc method to make sure the timer is stopped and removed from the > run loop. Well, in that case he'd better add timer=nil to stopWatch ;-) -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice

Re: how to prevent baseline shift when using NSSuperscriptAttributeName on a NSTextView's NSAttributedString ?

2008-07-21 Thread Andrew Farmer
On 20 Jul 08, at 21:27, Rua Haszard Morris wrote: I am using NSSuperscriptAttributeName to make part of a string displayed in an NSTextView label display as superscript (to show "to the power of 2"). I may also use a smaller font attribute to make the "2" char smaller. My problem is that t

Re: setFirstResponder to NSTextField fails 1st time, works next

2008-07-21 Thread Moses Hall
SOLVED: I'm posting this for the sake of the archives, in case anyone else has this problem. I found that making the window the first responder before making the text field first responder solves the problem. Apparently the window is *not* first responder the first time the user selects the

NSTextView overdraw bug in Leopard?

2008-07-21 Thread Martin Wierschin
Hi everyone, We've had a report or two from users where text will incorrectly draw in an area it's not supposed to. Basically a line fragment (or part of one) from the prior NSTextContainer will draw over text in the current container. The odd part is that both line fragments are the last

set posterImage in QTKit?

2008-07-21 Thread vince
Thanks , Is there a Cocoa method to set and save the current frame of a QT Movie as the poster frame? -v. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

NSBaselineOffsetAttributeName support in NSTextField - bug? Re: how to prevent baseline shift when using NSSuperscriptAttributeName on a NSTextView's NSAttributedString ?

2008-07-21 Thread Rua Haszard Morris
Update: If I set the superscript attribute for the exponent, and set a negative value (any negative value), the baseline is appropriate (i.e. lines up with surrounding controls). The strange thing is that there only seem to be 3 baseline positions supported by NSTextField; any positive va

Re: Weak link usage? @property?

2008-07-21 Thread Shawn Erickson
On Mon, Jul 21, 2008 at 3:07 PM, Scott Squires <[EMAIL PROTECTED]> wrote: > So what's the correct form of weak linking to avoid retain cycles? > > If I have an instance variable in my child of it's parent: > > @interface MyChild blah blah... > { > >MyParentClass * myParent; > } > @property

Weak link usage? @property?

2008-07-21 Thread Scott Squires
So what's the correct form of weak linking to avoid retain cycles? If I have an instance variable in my child of it's parent: @interface MyChild blah blah... { MyParentClass * myParent; } @property (nonatomic) MyParentClass * myParent; Provides this warning. warning: no 'assign', '

Re: Breakpoints for CG* functions

2008-07-21 Thread Sean McBride
On 7/21/08 9:44 PM, Moray Taylor said: >Hi there, > >I'm getting a lot of errors like > >: CGContextMoveToPoint: invalid context > >but my usual [NSException raise] breakpoint isn't doing the job Expected I'd say: CoreGraphics/Quartz is not Cocoa. > I've >tried setting a breakpoint on CGPostErro

Breakpoints for CG* functions

2008-07-21 Thread Moray Taylor
Hi there, I'm getting a lot of errors like : CGContextMoveToPoint: invalid context but my usual [NSException raise] breakpoint isn't doing the job, I've tried setting a breakpoint on CGPostError() too, but nothing seems to work. Am I setting the breakpoint correctly? They seem to be OK. (gdb)

Re: A data display question

2008-07-21 Thread Ronnie B
Seems like I overlooked some properties in Inspector. Thanks for the hint. On Mon, Jul 21, 2008 at 5:13 PM, Randall Meadows <[EMAIL PROTECTED]> wrote: > On Jul 21, 2008, at 2:51 PM, Ronnie B wrote: > > What would be recommended to do in order to display a tabular data w/o it >> being editable o

Re: How to receive my own crash reports?

2008-07-21 Thread Torsten Curdt
On Jul 21, 2008, at 18:07, Andreas Mayer wrote: Am 21.07.2008 um 14:49 Uhr schrieb Torsten Curdt: http://vafer.org/projects/feedbackreporter/ Feedback welcome :) I don't have git installed and I don't plan to change that to look at just one project. I heard rumors there are also other p

Re: Avoiding mutual retain cycles

2008-07-21 Thread Philippe Mougin
Le 21 juil. 08 à 20:50, Markus Spoettl a écrit : [...] I'm wondering if there is a general rule or mechanism that suggests what to do in such a case. For instance, how are delegates implemented in AppKit, are they retained? If so, when are they released. It can't be in -dealloc, otherwis

Re: A data display question

2008-07-21 Thread Randall Meadows
On Jul 21, 2008, at 2:51 PM, Ronnie B wrote: What would be recommended to do in order to display a tabular data w/ o it being editable or sortable. I would like to have something like the Table View. What's wrong with using NSTableView? ___ Coc

[NSString stringWithContentsOfURL:...], threads, and 10.5.4, xcode 3.1

2008-07-21 Thread [EMAIL PROTECTED]
i have been using +[NSString stringWithContentsOfURL:encoding:error:] in my app to obtain stock quotes from yahoo. i issue this in one (or more) threads to get values for one (or more) stocks. i'm not quite sure when this stopped working successfully, but it is definitely not working reliably o

A data display question

2008-07-21 Thread Ronnie B
What would be recommended to do in order to display a tabular data w/o it being editable or sortable. I would like to have something like the Table View. Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests o

Re: Growl, NSTimer, and Launching Application help!

2008-07-21 Thread Jens Alfke
On 21 Jul '08, at 12:07 PM, Eric Lee wrote: I've fully implemented growl, but how can you implement growl so that you can disable and enable growl by unchecking/checking a checkbox because too many small windows appearing might get a little annoying. Use NSUserDefaults to store a boolean

Re: Avoiding mutual retain cycles

2008-07-21 Thread Markus Spoettl
On Jul 21, 2008, at 12:28 PM, Ken Thomases wrote: Actually, it is not against the guidelines, it is in keeping with them. See here: http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Concepts/ObjectOwnership.html#/ /apple_ref/doc/uid/2043-1000698 That explicitly discus

Re: Avoiding mutual retain cycles

2008-07-21 Thread Markus Spoettl
On Jul 21, 2008, at 12:21 PM, Andreas Mayer wrote: I'm wondering if there is a general rule or mechanism that suggests what to do in such a case. About retain cycles: http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Concepts/ObjectOwnership.html "The solution to the probl

Re: Redrawing CALayer subclass when super layer is scaled

2008-07-21 Thread David Duncan
On Jul 20, 2008, at 4:04 PM, Rick Mann wrote: David, I checked my code again, and realized I was setting the bias to 1 (I thought I saw that in a sample). I don't really understand how the numbers are interpreted, but when I set it higher (4, and then 10), my layers started getting redrawn

Re: Avoiding mutual retain cycles

2008-07-21 Thread Ken Thomases
On Jul 21, 2008, at 1:50 PM, Markus Spoettl wrote: By changing the reference from B to A to a weak reference which doesn't retain and release A, the problem goes away. However, generally speaking this is dangerous road to go (and against memory management guidelines) Actually, it is not

Re: Growl, NSTimer, and Launching Application help!

2008-07-21 Thread Shawn Erickson
On Mon, Jul 21, 2008 at 12:07 PM, Eric Lee <[EMAIL PROTECTED]> wrote: > Problem 1: > > I've fully implemented growl, but how can you implement growl so that you > can disable and enable growl by unchecking/checking a checkbox because too > many small windows appearing might get a little annoying.

Re: Avoiding mutual retain cycles

2008-07-21 Thread Andreas Mayer
Am 21.07.2008 um 20:50 Uhr schrieb Markus Spoettl: I'm wondering if there is a general rule or mechanism that suggests what to do in such a case. About retain cycles: http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Concepts/ObjectOwnership.html "The solution to the pro

Re: Design question, which controller class to use

2008-07-21 Thread Ken Thomases
On Jul 20, 2008, at 10:24 PM, Jens Alfke wrote: On 20 Jul '08, at 8:05 PM, James W. Walker wrote: Since there is a window (which has a title that depends on the data) I thought I should use a subclass of NSWindowController. On the other hand, there is an array being displayed in a table, a

Re: Handling key equivalents in a controller class?

2008-07-21 Thread Matt Neuburg
On Sat, 19 Jul 2008 12:34:45 -0700, Jens Alfke <[EMAIL PROTECTED]> said: > >On 19 Jul '08, at 8:52 AM, Matt Neuburg wrote: > >> Try it and see. Let's say we want to catch Esc directed to the >> window as a >> whole (to exit full screen mode, if I recall your example). So what >> I would >> do is to

Growl, NSTimer, and Launching Application help!

2008-07-21 Thread Eric Lee
I've written a stopwatch application so that I can get to know NSTimer, NSAlert, how to implement growl, etc. Problem 1: I've fully implemented growl, but how can you implement growl so that you can disable and enable growl by unchecking/checking a checkbox because too many small windows a

Re: Newbie CALayer Questions

2008-07-21 Thread David Duncan
On Jul 21, 2008, at 9:49 AM, Scott Anguish wrote: On 21-Jul-08, at 10:48 AM, Bob Barnes wrote: I hadn't considered that but I cut and pasted it directly from the documentation. - (void)drawInContext(CGContextRef)ctx { NSLog(@"drawInContext called"); } that should be - (void)drawInCont

Avoiding mutual retain cycles

2008-07-21 Thread Markus Spoettl
Hi List, in the course of debugging a -dealloc in a data structure that is part of an NSDocument app, I've discovered that my document and all it's data never gets deallocated. After some extensive digging I nailed the problem down to mutual retain cycles (not sure this is the right ter

Re: Unarchiving a plugin custom control

2008-07-21 Thread Fritz Anderson
On 20 Jul 2008, at 9:05 PM, Anders Lassen wrote: I am working on a custom control, which has a few simple properties. The object is a subclass of NSBox, and is therefore initialized with initWithCoder. When the object is created for the first time and nothing has been saved to the archive

RE: Read/Write to info.plist's LSEnvironment

2008-07-21 Thread Lee, Frederick
Point well taken. I'm going with key chain. BTW: this is for an iPhone environment. I'm hesitant to mention iPhone via NDA; so tried to be as generic as possible. Thanks for the needed insight. Ric. -Original Message- From: Jens Alfke [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 20

Re: Read/Write to info.plist's LSEnvironment

2008-07-21 Thread Jens Alfke
On 21 Jul '08, at 10:09 AM, Lee, Frederick wrote: I was thinking of keeping the User ID and other simple < 2KB of identifiers within the bundle. I found the LSEnvironment option and it 'appears' to be what I'm after. What if there are multiple users on the machine? Then they'll all be f

Re: Read/Write to info.plist's LSEnvironment

2008-07-21 Thread Finlay Dobbie
On Mon, Jul 21, 2008 at 5:50 PM, Lee, Frederick <[EMAIL PROTECTED]> wrote: > Simple need: to store NSString values (UserName, PW) in a Dictionary > format within my application's .plist. > > I've read Apple's Cocoa literature and found that .plist's LSEnvironment > is the way to go. > > Using the .

RE: Read/Write to info.plist's LSEnvironment

2008-07-21 Thread Lee, Frederick
I was thinking of keeping the User ID and other simple < 2KB of identifiers within the bundle. I found the LSEnvironment option and it 'appears' to be what I'm after. But I'm open to others' suggestions (based on their experiences) and shall dutifully follow the more logical route. For one thing

Re: Handling key equivalents in a controller class?

2008-07-21 Thread Nathan Vander Wilt
Jens – I've been wanting to do similar key handling in my controller class (rather than view classes), so I'm glad I'm not the only one not fully grokking the responder chain. I got some helpful responses to my more specific question, but without loss of generality. Especially: http://www.c

Re: WebKit, programmatic form input, form submits

2008-07-21 Thread Diop Mercer
Thanks guys, I'll take a look. -m On Sun, Jul 20, 2008 at 6:54 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: > > On 20 Jul '08, at 9:39 AM, Diop Mercer wrote: > >> Hi, I've been playing with WebKit, and I've written a Cocoa app that >> brings up a site in a WebView. That was easy, but now I'd like to

Re: Being notified of changes to a file

2008-07-21 Thread Finlay Dobbie
On Mon, Jul 21, 2008 at 8:56 AM, Yann Disser <[EMAIL PROTECTED]> wrote: > What I am trying to figure out, is how to respond right away to every single > line that is written on stdout without waiting for the process to be > finished. There are many examples of this. See

Re: webDAV (lite) framework?

2008-07-21 Thread Finlay Dobbie
On Mon, Jul 21, 2008 at 3:37 PM, William Bates <[EMAIL PROTECTED]> wrote: > Is there an objective-C webDAV framework around? I've been rolling my own (I > only need some basic functionality) but can't image it hasn't been done > already... ConnectionKit has basic functionality for WebDAV. And HTTP

Re: Design question, which controller class to use

2008-07-21 Thread Hamish Allan
On Mon, Jul 21, 2008 at 4:05 AM, James W. Walker <[EMAIL PROTECTED]> wrote: > I have these windows, each of which has a table displaying data from an > array of dictionaries. The data is never stored on disk, so I don't think > of these windows as "documents". In addition to what Jens said: If t

Read/Write to info.plist's LSEnvironment

2008-07-21 Thread Lee, Frederick
Simple need: to store NSString values (UserName, PW) in a Dictionary format within my application's .plist. I've read Apple's Cocoa literature and found that .plist's LSEnvironment is the way to go. Using the .plist editor to add LSEnvironment dictionary and member keys is straight forward.

Re: Newbie CALayer Questions

2008-07-21 Thread Scott Anguish
On 21-Jul-08, at 10:48 AM, Bob Barnes wrote: I hadn't considered that but I cut and pasted it directly from the documentation. - (void)drawInContext(CGContextRef)ctx { NSLog(@"drawInContext called"); } that should be - (void)drawInContext:(CGContextRef)ctx (copied and pasted from

Re: How to receive my own crash reports?

2008-07-21 Thread Andreas Mayer
Am 21.07.2008 um 14:49 Uhr schrieb Torsten Curdt: http://vafer.org/projects/feedbackreporter/ Feedback welcome :) I don't have git installed and I don't plan to change that to look at just one project. Could you please include the source with the download? Andreas _

Re: webDAV (lite) framework?

2008-07-21 Thread Matt Long
It has a lot of compiler warnings when you build it under Leopard, but the Connection Kit: http://opensource.utr-software.com/connection/ says it does support WebDAV. -Matt On Jul 21, 2008, at 9:59 AM, Abernathy, Joshua wrote: Goliath (http://www.webdav.org/goliath/) is an open source WebDA

Re: Being notified of changes to a file

2008-07-21 Thread Dmitri Goutnik
On Jul 20, 2008, at 8:37 PM, Yann Disser wrote: Hi everyone. I am trying to execute a ruby script from within a Cocoa application. I want to use NSTask (any better ideas?). My scripts outputs its progress by printing single lines on standard out containing percentages (e.g. "15%"). How ca

Re: setting image for person in address book

2008-07-21 Thread Jens Alfke
On 20 Jul '08, at 9:09 PM, Vijay Kanse wrote: I am getting the Image set for the Person. I was Missing to write [NSURL URLWithString@"url path"]. But it's easier just to use -initWithContentsOfFile:, as you were originally doing. Your mistake was that the string contained a file: URL, not

Re: NSURLConnection - bypass Keychain dialog?

2008-07-21 Thread Jens Alfke
On 21 Jul '08, at 8:48 AM, William Bates wrote: I'm writing an app that automates lots of little uploads to a server. My NSURLConnection delegate is all set to handle authorization requests - it knows the passwords - but 99% of the time it does not get reached, but rather the Keychain Acce

RE: webDAV (lite) framework?

2008-07-21 Thread Abernathy, Joshua
Goliath (http://www.webdav.org/goliath/) is an open source WebDAV client. It's pretty sucky but it might give you a start. It uses DAVLib (http://www.webdav.org/goliath/davlib.html) which is really old but again, might give you a start. J -Original Message- From: [EMAIL PROTECTED] [mailto

Re: webDAV (lite) framework?

2008-07-21 Thread Jens Alfke
On 21 Jul '08, at 7:49 AM, Tony Becker wrote: If you're Leopard only, you can look at Calendar Store: http://developer.apple.com/documentation/AppleApplications/Conceptual/CalendarStoreProgGuide/Introduction/Introduction.html He asked about WebDAV, not CalDAV (which is a calendar-specific p

NSURLConnection - bypass Keychain dialog?

2008-07-21 Thread William Bates
I'm writing an app that automates lots of little uploads to a server. My NSURLConnection delegate is all set to handle authorization requests - it knows the passwords - but 99% of the time it does not get reached, but rather the Keychain Access dialog comes up "App Name wants access to your

Re: Being notified of changes to a file

2008-07-21 Thread Vitaly Ovchinnikov
I don't think that you can capture stdout. You need to create a pipe and redirect your script's output there. And then read from that pipe, parse and update your progress indicator. A good starting point is here: http://www.cocoadev.com/index.pl?NSPipe On Mon, Jul 21, 2008 at 11:56 AM, Yann Disser

Re: How to get a table column header with an image instead of text?

2008-07-21 Thread Corbin Dunn
On Jul 20, 2008, at 12:48 PM, Marc Respass wrote: On Jul 20, 2008, at 2:05 PM, Adam R. Maxwell wrote: On Jul 20, 2008, at 10:57 AM, Jean-Daniel Dupas wrote: Le 20 juil. 08 à 19:54, Marc Respass a écrit : Hi again, I hate answering my own question but I did figure it out. I sub- class

Creating multiple popup window

2008-07-21 Thread Idan Katalan
Hi, I want to create a window that can have multiple instances which every instance displays different data. Something like little pop-up windows in the bottom right corner of a window. I managed to create a single window that has a view and a controller with interface builder. and I already c

Re: webDAV (lite) framework?

2008-07-21 Thread Tony Becker
If you're Leopard only, you can look at Calendar Store: http://developer.apple.com/documentation/AppleApplications/Conceptual/CalendarStoreProgGuide/Introduction/Introduction.html On Jul 21, 2008, at 10:37 AM, William Bates wrote: Is there an objective-C webDAV framework around? I've been rolli

Re: Newbie CALayer Questions

2008-07-21 Thread Bob Barnes
On Jul 20, 2008, at 10:43 PM, Scott Anguish wrote: that shouldn't be an issue if he's explicitly calling the setNeedsDisplay is the method signature correct on your implementation of drawInContext:? On 21-Jul-08, at 12:22 AM, Brian Christensen wrote: On Jul 20, 2008, at 20:00, Bob Barn

Re: Newbie CALayer Questions

2008-07-21 Thread Bob Barnes
On Jul 20, 2008, at 9:22 PM, Brian Christensen wrote: On Jul 20, 2008, at 20:00, Bob Barnes wrote: I have some questions related to CALayer drawing. I want to be able to display images, text, 2D graphics or a PDF page. I'm able to display an image by directly setting the contents property

webDAV (lite) framework?

2008-07-21 Thread William Bates
Is there an objective-C webDAV framework around? I've been rolling my own (I only need some basic functionality) but can't image it hasn't been done already... ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Being notified of changes to a file

2008-07-21 Thread Michael Ash
On Mon, Jul 21, 2008 at 3:56 AM, Yann Disser <[EMAIL PROTECTED]> wrote: > Thanks for your reply. > > Hmm, the subject is rather ill chosen. (I started to write the mail and then > looked a little more into NSPipe before finishing it) My script actually > writes to stdout. > > What I am trying to fi

Re: How to receive my own crash reports?

2008-07-21 Thread Torsten Curdt
http://vafer.org/projects/feedbackreporter/ Feedback welcome :) cheers -- Torsten On Jul 21, 2008, at 14:38, Vitaly Ovchinnikov wrote: Hello, Apple's CrashReporter sends crash reports to Apple only and there is no way for me to receive them too. ILCrashReporter from http://www.infinite-loop

How to receive my own crash reports?

2008-07-21 Thread Vitaly Ovchinnikov
Hello, Apple's CrashReporter sends crash reports to Apple only and there is no way for me to receive them too. ILCrashReporter from http://www.infinite-loop.dk doesn't know that in Leopard crash reports files named differently than in Tiger and it reads old reports instead of new ones. What I wan

Re: Being notified of changes to a file

2008-07-21 Thread Yann Disser
Thanks for your reply. Hmm, the subject is rather ill chosen. (I started to write the mail and then looked a little more into NSPipe before finishing it) My script actually writes to stdout. What I am trying to figure out, is how to respond right away to every single line that is written

Re: NSWindowController getting over-released by NSDocument?

2008-07-21 Thread Markus Spoettl
On Jul 20, 2008, at 11:53 PM, Markus Spoettl wrote: I'm having some problems with memory management of a window controller in a standard NSDocument based application. The problem is that my window controller gets released through an autorelease pool after the document has been deallocated (