Re: Network notifications

2008-04-01 Thread Hamish Allan
On Tue, Apr 1, 2008 at 5:03 AM, Jens Alfke <[EMAIL PROTECTED]> wrote: > You want to set a TXT record for the service. I disagree. If the updates are frequent, this makes a lot of work for every other machine on the LAN to update their mDNSResponder caches. Randall mentioned that there's really o

test if another app has hung

2008-04-01 Thread Ben Dougall
Hello, What's the best way to test if another app has likely hung or not? Programmatically of course. I want to be able to kill an often hanging app and restart it -- when it's hung that is. (10.3.9+) Thanks, Ben. ___ Cocoa-dev mailing list (Cocoa

Re: Question on bitmap fonts

2008-04-01 Thread Tobia Conforto
Aki Inoue wrote: It appears that this is the intended behavior. The font contains glyphs that extend beyond the ascender line (the accented glyphs) and Cocoa automatically adjusts the default line height accordingly to avoid baseline shifts. But the font doesn't have any glyphs that exten

Getting Localized System Strings

2008-04-01 Thread Gerriet M. Denkmann
Cocoa uses (automatically) localized strings. I would like to do the same. E.g. using NSTextView and pasting a font, the Edit menu will suddenly show Undo "Paste Font". If the same app is running with German as the preferred language, the Edit menu will contain Undo "Schrift einsetzen" (yes

Re: test if another app has hung

2008-04-01 Thread Ben Dougall
On 1 Apr, 2008, at 11:49 am, Ron Fleckner wrote: On 01/04/2008, at 9:28 PM, Ben Dougall wrote: Hello, What's the best way to test if another app has likely hung or not? Programmatically of course. I want to be able to kill an often hanging app and restart it -- when it's hung that is. (10.

Exploring AppleScript APIs

2008-04-01 Thread Torsten Curdt
Hey, There is a Cocoa application X that is Apple-scriptable. Is there any way to find out what functions are supported ...except having proper documentation at hand? Hope that's not too OT. cheers -- Torsten ___ Cocoa-dev mailing list (Cocoa-dev

Re: Getting Localized System Strings

2008-04-01 Thread Jean-Daniel Dupas
The strings you are looking for are in the AppKit ressources, but I don't think there are part of the API, the keys can change at anytime and you cannot rely on the files names. (in Leopard, the Undo.strings file contains a "Paste Font" key, but it's not garantee that it remain like that)

Re: test if another app has hung

2008-04-01 Thread Jean-Daniel Dupas
The Window Server considere that an App hangs when it does not process High Level events fast enought. What do you mean by hang ? Is it a daemon that process background request but stop to responds? Is it a graphical application that present a Spinning Wheel ? Is it a third party app that yo

Re: test if another app has hung

2008-04-01 Thread Ron Fleckner
On 01/04/2008, at 9:28 PM, Ben Dougall wrote: Hello, What's the best way to test if another app has likely hung or not? Programmatically of course. I want to be able to kill an often hanging app and restart it -- when it's hung that is. (10.3.9+) Thanks, Ben. Hi Ben, This question was

Re: Saving NSManagedObject in Core-Data

2008-04-01 Thread Felix Franz
On 01.04.2008, at 02:03, malcom wrote: This is what I've made (suppose you receive a data from a multithreaded socket). 1) You receive the packet 2) Put it into a temp array 3) When you reach a number x of messages you can call the save function The save function repeats these statements f

Re: Exploring AppleScript APIs

2008-04-01 Thread Jean-Daniel Dupas
Drop the application icon on the "Script Editor" Application. (in / Applications/AppleScript/) It will open it's Scripting dictionary. Le 1 avr. 08 à 13:34, Torsten Curdt a écrit : Hey, There is a Cocoa application X that is Apple-scriptable. Is there any way to find out what functions are

Best Way to Replicate CURL in Cocoa?

2008-04-01 Thread Brad Gibbs
Hi, I'm trying to communicate with a Linux-based device that sits on the local network from multiple Macs (also on the local network). Documentation for the Linux device claims that it provides an XML-RPC server and that it responds to SOAP requests. However, XML-RPC and SOAP AppleScrip

Re: Custom interface

2008-04-01 Thread colo
Is their no common toolkit like css for Cocoa GUI ? Or hell just use css for building the apps interface? No a widget but a real cocoa app. On 3/31/08, John Stiles <[EMAIL PROTECTED]> wrote: > Basically you get to rewrite all the controls from scratch :) > > It's not a minor undertaking, so be s

Re: Getting Localized System Strings

2008-04-01 Thread Gerriet M. Denkmann
On 1 Apr 2008, at 12:25, Jean-Daniel Dupas wrote: The strings you are looking for are in the AppKit ressources, but I don't think there are part of the API, the keys can change at anytime and you cannot rely on the files names. (in Leopard, the Undo.strings file contains a "Paste Font" ke

Re: NSView out of memory problem

2008-04-01 Thread Matt Gough
On 1 Apr 2008, at 14:40, Leslie Smith wrote: I'm sure I'm missing something. Yes. An understanding of Autorelease pools (and presumably Cocoa memory management in general) http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/MemoryMgmt.html The unoptimal way to fix your m

NSView out of memory problem

2008-04-01 Thread Leslie Smith
Hi: I have a Cocoa application which draws a (very) large number of line segments using the code below in a loop, in drawRect, in a subclass of NSView. p1 = [NSBezierPath bezierPath] ; [p1 moveToPoint: linebottom] ; [p1 lineToPoint: linetop] ; [p1 stroke] ; (These are the outputs from a n

Re: Exploring AppleScript APIs

2008-04-01 Thread Torsten Curdt
So simple! Thanks!! :) On Apr 1, 2008, at 14:10, Jean-Daniel Dupas wrote: Drop the application icon on the "Script Editor" Application. (in / Applications/AppleScript/) It will open it's Scripting dictionary. Le 1 avr. 08 à 13:34, Torsten Curdt a écrit : Hey, There is a Cocoa application

Re: Getting Localized System Strings

2008-04-01 Thread Jean-Daniel Dupas
Le 1 avr. 08 à 14:47, Gerriet M. Denkmann a écrit : On 1 Apr 2008, at 12:25, Jean-Daniel Dupas wrote: The strings you are looking for are in the AppKit ressources, but I don't think there are part of the API, the keys can change at anytime and you cannot rely on the files names. (in Leopa

Re: Exploring AppleScript APIs

2008-04-01 Thread has
Torsten Curdt wrote: On Apr 1, 2008, at 14:10, Jean-Daniel Dupas wrote: There is a Cocoa application X that is Apple-scriptable. Is there any way to find out what functions are supported ...except having proper documentation at hand? Drop the application icon on the "Script Editor" Applic

Re: Custom interface

2008-04-01 Thread Rob Keniger
On 01/04/2008, at 10:58 PM, colo wrote: Is their no common toolkit like css for Cocoa GUI ? No. This is largely because Mac applications are supposed to have a consistent user interface. You can read more about this in the Apple Human Interface Guidelines: http://developer.apple.com/docu

Re: NSView out of memory problem

2008-04-01 Thread Matthew Whillock
Blimey! I went to (most) of your lectures! Networks I think it was. Software Engineerng MSc 1985/6 or thereabouts... Anyway, have you considered using +strokeLineFromPoint:toPoint: instead? No need for an NSBezierPath instance. Cheers, Matt (Ok then, some of your lectures) Hi: I have a

Re: NSView out of memory problem

2008-04-01 Thread Graham Cox
Are you sure? This could be just a convenient interface for creating a bezier object with the points passed, stroking it and releasing or autoreleasing it. The docs say nothing about how it's implemented. A better idea might be to create ONE bezier object at the top of the loop, collect all

Re: NSView out of memory problem

2008-04-01 Thread Jean-Daniel Dupas
Le 1 avr. 08 à 14:50, Matt Gough a écrit : On 1 Apr 2008, at 14:40, Leslie Smith wrote: I'm sure I'm missing something. Yes. An understanding of Autorelease pools (and presumably Cocoa memory management in general) http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Mem

Re: NSView out of memory problem

2008-04-01 Thread Graham Cox
On 1 Apr 2008, at 11:40 pm, Leslie Smith wrote: Hi: I have a Cocoa application which draws a (very) large number of line segments using the code below in a loop, in drawRect, in a subclass of NSView. p1 = [NSBezierPath bezierPath] ; [p1 moveToPoint: linebottom] ; [p1 lineToPoint: linetop

Re: NSView out of memory problem

2008-04-01 Thread Gorazd Krosl
Hi Leslie, NSView does not store any drawing. If the code bellow is executed in the loop as you are indicating and possibly several thousand times, each time through the loop you are creating a new autoreleased NSBezierPath. If this is the case, you should include NSAutoreleasePool and drain or fr

Re: Custom interface

2008-04-01 Thread colo
Thats silly. eh' i'm not going to argue I have no need to just yet, I still need to learn the detailed basics. But what of using opengl for the gui then? The Blender app utilizes this to the effect. On 4/1/08, Rob Keniger <[EMAIL PROTECTED]> wrote: > > On 01/04/2008, at 10:58 PM, colo wrote: > >

Re: NSView out of memory problem

2008-04-01 Thread Jean-Daniel Dupas
Yes, I am. The doc says nothing but according to the assembly form of this method, it do something like this: CGContextBeginPath() CGContextMoveToPoint() CGContextAddLineToPoint() CGContextStrokePath() Most of NSBezier method are just simple wrappers upon CoreGraphics equivalent. An oth

Re: Network notifications

2008-04-01 Thread Randall Meadows
On Apr 1, 2008, at 2:35 AM, Hamish Allan wrote: On Tue, Apr 1, 2008 at 5:03 AM, Jens Alfke <[EMAIL PROTECTED]> wrote: You want to set a TXT record for the service. I disagree. If the updates are frequent, this makes a lot of work for every other machine on the LAN to update their mDNSResponde

Re: Custom interface

2008-04-01 Thread John Stiles
If you want to use OpenGL for your GUI, that's always an option, but again you're on your own here. Cocoa provides very little support for this (outside of the generic NSOpenGLView). Honestly I think most people don't appreciate how much stuff you get "for free" in Cocoa, but you learn pretty

Re: Custom interface

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 6:52 AM, colo wrote: Thats silly. eh' i'm not going to argue I have no need to just yet, I still need to learn the detailed basics. But what of using opengl for the gui then? The Blender app utilizes this to the effect. You can create any kind of UI you want — look at all the

Re: Custom interface

2008-04-01 Thread I. Savant
> Honestly I think most people don't appreciate how much stuff you get > "for free" in Cocoa, but you learn pretty fast when you get to > reimplement it yourself! :) True, but there are many legitimate reasons not to use a standard UI. FrontRow is a prime example of this. A kiosk application

Re: NSView out of memory problem

2008-04-01 Thread Matthew Whillock
The class reference has this to say about it: Strokes a line between two points using the current stroke color and the default drawing attributes. + (void)strokeLineFromPoint:(NSPoint)point1 toPoint:(NSPoint)point2 So it will just draw a line. Cheers, Matt Are you sure? This could be jus

Re: Network notifications

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 1:35 AM, Hamish Allan wrote: I disagree. If the updates are frequent, this makes a lot of work for every other machine on the LAN to update their mDNSResponder caches. If they're updating every second, then yes, TXT records would be inappropriate. But Randall didn't say whe

Alternating Button

2008-04-01 Thread Gerriet M. Denkmann
The FindPanel in TextEdit has in the bottom left corner a button "Replace All" which changes to "In Selection" when the ⌥-key is pressed. How is this done? I want to have such a changing button in some of my own panels. Kind regards, Gerriet.

Using UNCs with NSURLConnection

2008-04-01 Thread Valentin Dan
Hi, I’d like to know if there’s any way to use a UNC path with a NSURLConnection object ? Can the UNC perhaps be transformed in a NSURL ? Or is there another way to get a remote file from a server that requires authentication if I only have the file’s UNC ? Thanks ! __

Re: Best Way to Replicate CURL in Cocoa?

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 5:39 AM, Brad Gibbs wrote: Given this, I'm suspecting it responds to HTTP Posts, rather than XML-RPC or SOAP requests. But both those protocols do use HTTP POSTs. (XML-RPC can use alternate transports, but in practice it's almost always over HTTP.) I've seen references t

Re: NSView out of memory problem

2008-04-01 Thread Andre Schnoor
p1 = [NSBezierPath bezierPath] ; [p1 moveToPoint: linebottom] ; [p1 lineToPoint: linetop] ; [p1 stroke] ; You could keep a permanent bezier path at a convenient location (e.g. your view) and empty it instead of releasing it. This worked fine for my app: [localPath re

Re: Network notifications

2008-04-01 Thread Randall Meadows
On Apr 1, 2008, at 9:13 AM, Jens Alfke wrote: On 1 Apr '08, at 1:35 AM, Hamish Allan wrote: I disagree. If the updates are frequent, this makes a lot of work for every other machine on the LAN to update their mDNSResponder caches. If they're updating every second, then yes, TXT records would

Re: Alternating Button

2008-04-01 Thread Jean-Daniel Dupas
I dont think there is an automatic way to have it (except for menu), but you can have a look at the flagsChanged: event Le 1 avr. 08 à 17:24, Gerriet M. Denkmann a écrit : The FindPanel in TextEdit has in the bottom left corner a button "Replace All" which changes to "In Selection" when the

Re: Alternating Button

2008-04-01 Thread Jean-Daniel Dupas
Sorry for the previous unfinished message. I dont think there is an automatic way to have it (except for menu items), but you can have a look at the flagsChanged: method of NSResponder. Le 1 avr. 08 à 17:24, Gerriet M. Denkmann a écrit : The FindPanel in TextEdit has in the bottom left cor

Re: Best Way to Replicate CURL in Cocoa?

2008-04-01 Thread Brad Gibbs
Thanks for the reply. On Apr 1, 2008, at 8:51 AM, Jens Alfke wrote: On 1 Apr '08, at 5:39 AM, Brad Gibbs wrote: Given this, I'm suspecting it responds to HTTP Posts, rather than XML-RPC or SOAP requests. But both those protocols do use HTTP POSTs. (XML-RPC can use alternate transports

Re: Network notifications

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 8:25 AM, Randall Meadows wrote: If they're updating every second, then yes, TXT records would be inappropriate. But Randall didn't say whether the updates were that frequent. I would expect maybe 5-10 over a 2-3 minute period, and then a downtime of about the same; lathe

Re: Using UNCs with NSURLConnection

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 8:42 AM, Valentin Dan wrote: I’d like to know if there’s any way to use a UNC path with a NSURLConnection object ? Can the UNC perhaps be transformed in a NSURL ? I had to look up UNC on Wikipedia; I think what you're talking about is a type of path string used on Window

Re: Question on bitmap fonts

2008-04-01 Thread Aki Inoue
From the look of it, I think there is floating-point rounding involved. After all, the graphics system is treating it as a scalable font so the notion of bitmap (or pixel-based) font design doesn't apply. Aki On 2008/04/01, at 9:48, Tobia Conforto wrote: Thank you! I hadn't thought of usin

Re: Question on bitmap fonts

2008-04-01 Thread John Stiles
If it's rounding, that would be pretty severe. I'd expect at least 6 or 7 viable digits. Aki Inoue wrote: From the look of it, I think there is floating-point rounding involved. After all, the graphics system is treating it as a scalable font so the notion of bitmap (or pixel-based) font des

Re: Question on bitmap fonts

2008-04-01 Thread Tobia Conforto
Thank you! I hadn't thought of using gdb :-) Now I only need to understand why y = -2.6643 instead of -2.6651 Tobia On 1 Apr 2008, at 18:36, Aki Inoue wrote: This is the information returned from the font. (gdb) p glyphBBox $30 = { origin = { x = 0, y = -2.6643 }, size

ERROR: __CFURLCache::StepSQLStatement

2008-04-01 Thread Kimo
I randomly get the following error message when using my Core Data app that uses a SQLite store: ERROR: __CFURLCache::StepSQLStatement - step failed (exceed retry) - ErrCode: 5 No exceptions are thrown, and nothing else (that I'm aware of) seems to be effected by this error. Does anyone

CoreAnimation with and manual animation...

2008-04-01 Thread Jesse Grosjean
I'd like to create something like a spaceship with core animation. That is the object should be animated on screen, but it's velocity will always be changing. Because of this I'm not sure if using core animations build in animation system makes sense, because it seems like most of those ani

Re: ERROR: __CFURLCache::StepSQLStatement

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 10:22 AM, Kimo wrote: ERROR: __CFURLCache::StepSQLStatement - step failed (exceed retry) - ErrCode: 5 That's an internal error from CFNetwork's URL cache (which happens to use a sqlite database.) Nothing to do with CoreData. —Jens smime.p7s Description: S/MIME cryptogra

Re: Getting Localized System Strings

2008-04-01 Thread Gary L. Wade
> >Thanks a lot. I decided to use it like this: >NSBundle *appBundle = [ NSBundle bundleWithIdentifier: >@"com.apple.AppKit" ]; >NSString *localSetFont = [ appBundle localizedStringForKey: @"Set >Font" value: nil table: @"Undo"]; >Seems to work fine. > That's really not a good thing to do unle

Fixing my massive memory leak with NSImage/CALayer

2008-04-01 Thread Nathan Vander Wilt
I want to pop up photographs inside their own Core Animation layers, but I get huge real memory usage that never goes down. I have an FRPhoto class whose instances manage other metadata for the image, and also have a convenience method to get an NSImage* as follows: - (NSImage*)image {

PDF file in NSTextAttachment

2008-04-01 Thread fred . redcliffe
Dear all I am trying to add a pdf image to an NSTextAttachment. I create a file wrapper from a pdf image on disk and insert it into my textstorage, with no problem, which draws fine on screen but then when I want to print the document it draws the image at low resolution. Also when the tex

Re: PDF file in NSTextAttachment

2008-04-01 Thread Douglas Davidson
On Apr 1, 2008, at 11:33 AM, [EMAIL PROTECTED] wrote: I am trying to add a pdf image to an NSTextAttachment. I create a file wrapper from a pdf image on disk and insert it into my textstorage, with no problem, which draws fine on screen but then when I want to print the document it draws t

Re: ERROR: __CFURLCache::StepSQLStatement

2008-04-01 Thread Bill
On Apr 1, 2008, at 10:45 AM, Jens Alfke wrote: On 1 Apr '08, at 10:22 AM, Kimo wrote: ERROR: __CFURLCache::StepSQLStatement - step failed (exceed retry) - ErrCode: 5 That's an internal error from CFNetwork's URL cache (which happens to use a sqlite database.) Nothing to do with CoreData

KVO question on Tree Controllers

2008-04-01 Thread Jeff LaMarche
I've registered to receive notifications from an NSTreeController instance loaded from a nib, like so: [treeController addObserver:self forKeyPath:@"selection" options:(NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld) context:NULL]; I've also tried using @"s

Re: Alternating Button

2008-04-01 Thread Gerriet M. Denkmann
On 1 Apr 2008, at 18:16, Jean-Daniel Dupas wrote: I dont think there is an automatic way to have it (except for menu items), but you can have a look at the flagsChanged: method of NSResponder. Le 1 avr. 08 à 17:24, Gerriet M. Denkmann a écrit : The FindPanel in TextEdit has in the bottom

Need for a creator code?

2008-04-01 Thread Marc Respass
Hi All, I haven't registered for a creator code since System 7.5. Apple has information and registration page (http://developer.apple.com/datatype/index.html ) about it but no indication if it's actually still required. Can anyone tell me if it is still required or maybe point me at the righ

Re: Need for a creator code?

2008-04-01 Thread Ricky Sharp
On Apr 1, 2008, at 2:59 PM, Marc Respass wrote: Hi All, I haven't registered for a creator code since System 7.5. Apple has information and registration page (http://developer.apple.com/datatype/index.html ) about it but no indication if it's actually still required. Can anyone tell me if

Re: Need for a creator code?

2008-04-01 Thread Marc Respass
On Apr 1, 2008, at 4:22 PM, Ricky Sharp wrote: On Apr 1, 2008, at 2:59 PM, Marc Respass wrote: Hi All, I haven't registered for a creator code since System 7.5. Apple has information and registration page (http://developer.apple.com/datatype/index.html ) about it but no indication if it's

Re: Need for a creator code?

2008-04-01 Thread Andrew Farmer
On 01 Apr 08, at 12:59, Marc Respass wrote: I haven't registered for a creator code since System 7.5. Apple has information and registration page (http://developer.apple.com/datatype/index.html ) about it but no indication if it's actually still required. Can anyone tell me if it is still req

Re: Need for a creator code?

2008-04-01 Thread Jeff LaMarche
On Apr 1, 2008, at 4:22 PM, Ricky Sharp wrote: Here's a FAQ, but it's kinda vague on the "why": Not only are they vague, they refer you to documents that are marked as "legacy". I was actually surprised to see they left creator codes in Xcod

[Meeting] Toronto Area Cocoa and WebObjects Developer Group - April 8

2008-04-01 Thread Karl Moskowski
The next meeting of tacow / Cocoaheads Toronto will be held on Tuesday, April 8 at 6:30 PM at Ryerson University. Apple's Steve Hayman will be talking about the iPhone SDK. More info and directions are available at . Thanks and see you there. Karl Moskowski <

Re: Custom interface

2008-04-01 Thread Ricky Sharp
On Apr 1, 2008, at 10:13 AM, I. Savant wrote: Of course we don't know what the requirements are. You may have a perfectly valid reason but customizing AppKit might be a perfectly poor choice ... The best thing to do - as I said - is to explain what you are trying to accomplish and why Cocoa U

UTIs and CFBundleDocumentTypes

2008-04-01 Thread Rick Mann
I'm trying to use the editor you get when you get info on a target in Xcode to add support to my application to open files ending in ".gpx". I've added a second line to that editor with what I thought was the appropriate information. But I'm confused, because these lines create CFBundleDocu

Re: Custom interface

2008-04-01 Thread glenn andreas
On Apr 1, 2008, at 3:45 PM, Ricky Sharp wrote: On Apr 1, 2008, at 10:13 AM, I. Savant wrote: Of course we don't know what the requirements are. You may have a perfectly valid reason but customizing AppKit might be a perfectly poor choice ... The best thing to do - as I said - is to explain

Re: Need for a creator code?

2008-04-01 Thread Marc Respass
On Apr 1, 2008, at 4:26 PM, Andrew Farmer wrote: On 01 Apr 08, at 12:59, Marc Respass wrote: I haven't registered for a creator code since System 7.5. Apple has information and registration page (http://developer.apple.com/datatype/index.html ) about it but no indication if it's actually still

Re: CGDisplayReconfigurationCallBack

2008-04-01 Thread Trygve Inda
What exactly would I put in here? It calls into my code with void DisplayReconfigurationCallBack (CGDirectDisplayID display, CGDisplayChangeSummaryFlags flags, void *userInfo) { if (flags & kCGDisplayAddFlag) { // do stuff } else if (flags & kCGDisplayRemoveFlag) {

Re: Cocoa Tutoring in SF Bay Area

2008-04-01 Thread E. Wing
Also, check out NSCoderNight. It is kind of an offshoot of CocoaHeads. It is a less formal thing where people just show up to work on their own projects. Usually people there can help you with questions. It meets every Tuesday. http://nscodernight.com/ If you're thinking about paid mentoring, I

Re: CoreAnimation with and manual animation...

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 10:44 AM, Jesse Grosjean wrote: n my app it seems like it would be simpler to just setup a timer and just directly update the ships position based on it's velocity for each time interval from my timer. I'd still want to use the built in core animation animations for other

Southern California Coders?

2008-04-01 Thread Casey Becking
Sorry to take any ones time if this has been discussed before. I was curious if there was any group meeting for Southern California coders to get together? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

Re: test if another app has hung

2008-04-01 Thread Martin Redington
I went to check the referenced thread, as this is something I wanted to do occasionally, when I noticed that I was the OP for it. The discussion was exhaustive, and veered OT at the end, but I'm not sure that I ever discerned how one would do this efficiently. This was probably the most i

iPhone Development: Any desktop-equiv frameworks to avoid?

2008-04-01 Thread Frederick C. Lee
Greetings: This is just a cursory question from a neophyte. Are there any desktop-equivalent libraries/frameworks that are detrimental to iPhone development? For example AppKit vs UIKit; or any particular libraries within the Foundation framework? Any opinions/discussion would further cl

DataSource for NSTableView with ButtonCell

2008-04-01 Thread Thomas Bartelmess
Hello List, i've created a NSTableview with Interface Builder. In one of my Collums is a NSButton. I've no idea how to set up the DataSource for this. Can anyone help me? Thanks a lot Thomas Bartelmess [EMAIL PROTECTED] ___ Cocoa-dev mailing l

Finding out about new windows.

2008-04-01 Thread Paul FitzGerald
I have a need to find a way for my application to find out when new windows are opened within it. The specific case I'm currently looking at is when the print dialog is opened and the user chooses "Save as PDF...". This action will open a file save dialog and I need to know when this happens.

Re: Need for a creator code?

2008-04-01 Thread has
Ricky Sharp wrote: I also know that you're still required to register a creator code for at least one other thing (cannot think of it now). Component Manager components use them for identification. Not that too many folks should need to write CM-based plugins these days; most will use the

Re: CoreAnimation with and manual animation...

2008-04-01 Thread Jesse Grosjean
Jens, Thanks for your reply. What I'm doing now is something like this: [CATransaction begin]; [CATransaction setValue:[NSNumber numberWithFloat:0] forKey:kCATransactionAnimationDuration]; for (CALayer *each in [rootLayer.sublayers copy]) {

Re: NSView out of memory problem

2008-04-01 Thread Graham Cox
As I said, it says nothing about how it's implemented. Chances are, it will avoid creation of an unnecessary NSBezierPath object, but relying on that being the case is folly. On 2 Apr 2008, at 2:23 am, Matthew Whillock wrote: The class reference has this to say about it: Strokes a line bet

Re: iPhone Development: Any desktop-equiv frameworks to avoid?

2008-04-01 Thread Shawn Erickson
On Tue, Apr 1, 2008 at 3:34 PM, Frederick C. Lee <[EMAIL PROTECTED]> wrote: > Greetings: > This is just a cursory question from a neophyte. > > Are there any desktop-equivalent libraries/frameworks that are > detrimental to iPhone development? > For example AppKit vs UIKit; or any particular

converting Carbon printing to Cocoa

2008-04-01 Thread Chinh Nguyen
My currently Carbon app can not only print the contents of a document in memory but also one from a disk without loading it. It does this by using PMSessionBeginDocument(), PMSessionBeginPage(), etc... and drawing each line of the document (in my own file format). When printing a file off

Re: test if another app has hung

2008-04-01 Thread John Stiles
I have a vague recollection that the mechanism used by Activity Monitor and friends is not public API, unfortunately. Martin Redington wrote: I went to check the referenced thread, as this is something I wanted to do occasionally, when I noticed that I was the OP for it. The discussion was

Re: CGDisplayReconfigurationCallBack

2008-04-01 Thread Jean-Daniel Dupas
As we are on the cocoa list, I assume you are using obj-c. If you are using plain C API in your code, you should not have problem. But if "// do stuff" contains some obj-c calls that can raise an exception, you have to make sure to catch it. void DisplayReconfigurationCallBack (CGDirectDispla

[NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread Martin Redington
I'm running /sbin/md5 via an NSTask on a number of files (3,000 or so, with a new NSTask each time). This is on 10.4.11, with Xcode 2.4.1 My Debug and Release builds seem to be running out of filehandles, or something similar, as evidenced by the following symptoms: 1) [NSPipe pipe] star

[NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread Martin Redington
I'm running /sbin/md5 via an NSTask on a number of files (3,000 or so, with a new NSTask each time). This is on 10.4.11, with Xcode 2.4.1 My Debug and Release builds seem to be running out of filehandles, or something similar, as evidenced by the following symptoms: 1) [NSPipe pipe] star

Re: CoreAnimation with and manual animation...

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 3:54 PM, Jesse Grosjean wrote: What I'm doing now is something like this: [CATransaction begin]; [CATransaction setValue:[NSNumber numberWithFloat:0] forKey:kCATransactionAnimationDuration]; I was actually setting the kCATransactionDisableActions property instea

Re: Fixing my massive memory leak with NSImage/CALayer

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 11:07 AM, Nathan Vander Wilt wrote: The NSImage that my FRPhoto holds on to should have "invalidate[d] and free[d] the offscreen caches of all image representations". That doesn't mean the image representations themselves are flushed, though. They're still there, typically

Re: Finding out about new windows.

2008-04-01 Thread Kyle Sluder
I'm pretty sure this is no longer the recommended way to do a kiosk application. Instead, you can use SetSystemUIMode to hide the menubar and dock (or replace the Finder as the first app launched). TN2062 < http://developer.apple.com/technotes/tn2002/tn2062.html > has more information. --Kyle Sl

Re: [NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread Jim Correia
On Apr 1, 2008, at 7:19 PM, Martin Redington wrote: I'm running /sbin/md5 via an NSTask on a number of files (3,000 or so, with a new NSTask each time). I know the "unix way" is to string together small purpose built tools via pipes. But it strikes me that NSTask is the wrong hammer for t

Re: [NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread stephen joseph butler
On Tue, Apr 1, 2008 at 6:20 PM, Martin Redington <[EMAIL PROTECTED]> wrote: > I'm running /sbin/md5 via an NSTask on a number of files (3,000 or > so, with a new NSTask each time). This would run a lot faster (and avoid fd issues) if you used libcrypto. Try "man EVP_DigestInit" to get an idea of

Re: ERROR: __CFURLCache::StepSQLStatement

2008-04-01 Thread Jens Alfke
On 1 Apr '08, at 12:06 PM, Bill wrote: Is my app causing it to happen? If so, should I try and correct it? Or can I safely ignore it? IIRC, sqlite error 5 means the database is locked. I think the only way that could happen is if you have multiple copies of your app/ process running at

Re: Need for a creator code?

2008-04-01 Thread Jean-Daniel Dupas
Le 1 avr. 08 à 22:26, Andrew Farmer a écrit : On 01 Apr 08, at 12:59, Marc Respass wrote: I haven't registered for a creator code since System 7.5. Apple has information and registration page (http://developer.apple.com/datatype/index.html ) about it but no indication if it's actually still

Re: Southern California Coders?

2008-04-01 Thread James Merkel
On Tue, 1 Apr 2008 15:23:40, Casey Becking wrote: Sorry to take any ones time if this has been discussed before. I was curious if there was any group meeting for Southern California coders to get together? Well, Southern California is a pretty big area. I have seen reference to Lake Forest

Re: [NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread Jean-Daniel Dupas
Le 2 avr. 08 à 01:36, stephen joseph butler a écrit : On Tue, Apr 1, 2008 at 6:20 PM, Martin Redington <[EMAIL PROTECTED] > wrote: I'm running /sbin/md5 via an NSTask on a number of files (3,000 or so, with a new NSTask each time). This would run a lot faster (and avoid fd issues) if you u

Re: Need for a creator code?

2008-04-01 Thread Rainer Brockerhoff
At 15:21 -0700 01/04/08, [EMAIL PROTECTED] wrote: >From: Andrew Farmer <[EMAIL PROTECTED]> >References: <[EMAIL PROTECTED]> >In-Reply-To: <[EMAIL PROTECTED]> >Date: Tue, 1 Apr 2008 13:26:58 -0700 >Message-ID: <[EMAIL PROTECTED]> > >On 01 Apr 08, at 12:59, Marc Respass wrote: >>I haven't registered

Re: Finding out about new windows.

2008-04-01 Thread Rob Napier
This is a good part of the solution. You also want to consider your window level. Rather than taking over the entire screen, move your window level up to NSModalPanelWindowLevel-1 and put a masking window at NSModalPanelWindowLevel-2. That way the modal dialog will pop up over your app. -Rob On T

Re: Finding out about new windows.

2008-04-01 Thread Ricky Sharp
On Apr 1, 2008, at 6:29 PM, Kyle Sluder wrote: I'm pretty sure this is no longer the recommended way to do a kiosk application. Instead, you can use SetSystemUIMode to hide the menubar and dock (or replace the Finder as the first app launched). TN2062 < http://developer.apple.com/technotes/tn

Re: [NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread Martin Redington
On 2 Apr 2008, at 00:33, Jim Correia wrote: On Apr 1, 2008, at 7:19 PM, Martin Redington wrote: I'm running /sbin/md5 via an NSTask on a number of files (3,000 or so, with a new NSTask each time). I know the "unix way" is to string together small purpose built tools via pipes. But it s

Re: Cocoa Tutoring in SF Bay Area

2008-04-01 Thread Joel Norvell
Hi Brad, Based on the description of your application, I think you'll find Brent Simmons' excellent XML-RPC Class for Cocoa helpful. And as Eric Wing pointed out, you can't go wrong with Cocoaheads and NSCoder Night! Sincerely, Joel http://ranchero.com/cocoa/xmlrpc/ ___

Re: KVO question on Tree Controllers

2008-04-01 Thread Adam Gerson
What is bound to your NSTreeController? If its something like an OutlineView you can have the delegate impliment outlineViewSelectionDidChange. I tested it in my app and it does get called when the OutlineView selection is changes to empty. Adam On Tue, Apr 1, 2008 at 3:11 PM, Jeff LaMarche <[EM

Re: [NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread John Stiles
I haven't experimented with CC_MD5, but we do have code which calculates MD5s (calculated via simple C code). Is CC_MD5 optimized e.g. using SSE or AltiVec? Should I expect to see a perf boost if I swapped in this code instead of our regular C code? Jean-Daniel Dupas wrote: Le 2 avr. 08 à 01

Re: [NSPipe pipe] returning nil (running out of filehandles?)

2008-04-01 Thread Martin Redington
On 2 Apr 2008, at 00:46, Jean-Daniel Dupas wrote: Le 2 avr. 08 à 01:36, stephen joseph butler a écrit : On Tue, Apr 1, 2008 at 6:20 PM, Martin Redington <[EMAIL PROTECTED]> wrote: I'm running /sbin/md5 via an NSTask on a number of files (3,000 or so, with a new NSTask each time). This

  1   2   >