Re: EPS

2008-09-10 Thread Georg Seifert
On 11 Sep 2008, at 1:13 am, Georg Seifert wrote: hello, is there a way to create EPS data from code? I need it to put in in pastboard. Does anyone can point my to some docs as I cant find any. What I want to do, is to copy a NSBezierPath to Illustrator and back. does [NSView dataWithEPS

Re: How do people typically implement dialog controllers?

2008-09-10 Thread Graham Cox
On 11 Sep 2008, at 4:16 pm, Seth Willits wrote: In Photoshop CS2 (which I have), previews are always within the dialog itself. In that case, it seems logical to me to make a temporary copy of your model for the dialog to modify and display as it needs. However, it sounds as if that isn't w

Re: menu with checkbox

2008-09-10 Thread Andrew Farmer
On 10 Sep 08, at 23:29, Georg Seifert wrote: That what exactly what I was looking after. I think it would be not to strange in the context where it occurs in my app. The normal selection behavior is for selecting the active layer in my view. The additional checkbox should allow to blend in/o

Re: menu with checkbox

2008-09-10 Thread Graham Cox
On 11 Sep 2008, at 4:29 pm, Georg Seifert wrote: That what exactly what I was looking after. I think it would be not to strange in the context where it occurs in my app. The normal selection behavior is for selecting the active layer in my view. The additional checkbox should allow to blen

Re: menu with checkbox

2008-09-10 Thread Georg Seifert
That what exactly what I was looking after. I think it would be not to strange in the context where it occurs in my app. The normal selection behavior is for selecting the active layer in my view. The additional checkbox should allow to blend in/out the other layers. I couldn’t think of a

Re: How do people typically implement dialog controllers?

2008-09-10 Thread Seth Willits
On Sep 10, 2008, at 10:49 PM, Graham Cox wrote: I don't think I understand your question, because I don't see how Cancel is related. If the user cancels the dialog, the callback from the dialog/controller to the calling controller, yields the return code. If the return code wasn't OK/Defaul

Re: BOOL array

2008-09-10 Thread Quincey Morris
... [earlier discussion] ... NSIndexSet can use less than 1-bit per bit :) (It compresses contiguous ranges) In some cases, especially where 1s are relatively sparse, as with selections. It can also take a whole lot more than 1 bit per bit, since a range is a pair of 32-bit ints. ... [future

Re: How do people typically implement dialog controllers?

2008-09-10 Thread Graham Cox
On 11 Sep 2008, at 3:25 pm, Seth Willits wrote: I don't think I understand your question, because I don't see how Cancel is related. If the user cancels the dialog, the callback from the dialog/controller to the calling controller, yields the return code. If the return code wasn't OK/Defau

Re: C/Obj-C API Confusion

2008-09-10 Thread Charles Srstka
On Sep 10, 2008, at 4:50 PM, Nick Zitzmann wrote: If you're trying to convert an MP3 to WAV, then you probably ought to use the AudioToolbox instead of QuickTime. Some more setup will be necessary, but it's more future-proof. Indeed, particularly since the C API for QuickTime is, AFAIK, not

Re: How do people typically implement dialog controllers?

2008-09-10 Thread Seth Willits
On Sep 10, 2008, at 9:44 PM, Graham Cox wrote: I use individual properties wherever possible. In some cases it's appropriate to have a single dictionary to contain the settings, because that dictionary gets passed around to other model objects as well. But if you're model objects uses disti

Re: NSTask is Weird

2008-09-10 Thread Jim Correia
On Sep 11, 2008, at 12:12 AM, Andrew Farmer wrote: Arguments needs to be an array containing one element per argument to the task That is correct. including argv[0] as the name of the executable. That advice is incorrect for NSTask. Consider the output of the following code, which follow

Re: BOOL array

2008-09-10 Thread Scott Ribe
> NSIndexSet can use less than 1-bit per bit :) > (It compresses contiguous ranges) In some cases, especially where 1s are relatively sparse, as with selections. It can also take a whole lot more than 1 bit per bit, since a range is a pair of 32-bit ints. -- Scott Ribe [EMAIL PROTECTED] http://w

Re: How do people typically implement dialog controllers?

2008-09-10 Thread Graham Cox
On 11 Sep 2008, at 2:39 pm, Seth Willits wrote: I use individual properties wherever possible. In some cases it's appropriate to have a single dictionary to contain the settings, because that dictionary gets passed around to other model objects as well. But if you're model objects uses dis

Re: How do people typically implement dialog controllers?

2008-09-10 Thread Seth Willits
On Sep 10, 2008, at 9:33 PM, Graham Cox wrote: So my question becomes: a) is using this intermediate dictionary a sensible idea? b) do others typically do this? c) or is there a better way? I use individual properties wherever possible. In some

Re: How do people typically implement dialog controllers?

2008-09-10 Thread Graham Cox
Judging by a few replies I've had off-list, I guess I ought to make this a bit clearer. I know about the standard NSWindowController model and I'm using it in the normal way. Also, this discussion probably pertains more commonly to modal rather than modeless dialogs though I don't use many

Re: NSTask is Weird

2008-09-10 Thread Andrew Farmer
On 10 Sep 08, at 20:24, J. Todd Slack wrote: Here it the command I am executing: /usr/local/bin/pymp3cut --segment "/Users/slack/Library/Application Support/Ring-Maker/tmp/amber",00:00:11,00:00:36 "/Users/slack/Music/ iTunes/iTunes Music/311/Unknown Album/01 Amber.mp3" I get this from the d

Re: How do people typically implement dialog controllers?

2008-09-10 Thread Seth Willits
On Sep 10, 2008, at 7:48 PM, Graham Cox wrote: OK, this is bit of a nebulous question, but I'm curious to know how people are typically implementing controllers for dialog panels. I follow the NSOpenPanel pattern where the panel is its own controller. SWSomethingPanel * panel = [SWSomething

How to locate error that occurs while the nib is loading

2008-09-10 Thread Louis Demers
Hi, I want to modify an application I developed for 10.4 with an IB plugin I created to do Hex number formatting. Since 10.5, that IB plugin no longer works so I tried to remove all formatters from my NIB file. However , now when I start the app, it crashes while loading the nib. The nib

NSTask is Weird

2008-09-10 Thread J. Todd Slack
Hi All, NSTask seems weird to me. I am trying to call a command-line app with arguments. When I execute in a Terminal it works, but from my application is fails. Here it the command I am executing: /usr/local/bin/pymp3cut --segment "/Users/slack/Library/Application Support/Ring-Maker/tmp/am

Re: BOOL array

2008-09-10 Thread Clark Cox
NSIndexSet can use less than 1-bit per bit :) (It compresses contiguous ranges) On Wed, Sep 10, 2008 at 5:21 PM, Scott Ribe <[EMAIL PROTECTED]> wrote: > Of course there's always std::vector< bool > ;-) usually at 1 bit per bit... -- Clark S. Cox III [EMAIL PROTECTED] __

How do people typically implement dialog controllers?

2008-09-10 Thread Graham Cox
OK, this is bit of a nebulous question, but I'm curious to know how people are typically implementing controllers for dialog panels. I don't mean the nuts and bolts of wiring up outlets to widgets and implementing actions, but rather the further problem of managing all the various bits of d

Re: EPS

2008-09-10 Thread Graham Cox
On 11 Sep 2008, at 1:13 am, Georg Seifert wrote: hello, is there a way to create EPS data from code? I need it to put in in pastboard. Does anyone can point my to some docs as I cant find any. What I want to do, is to copy a NSBezierPath to Illustrator and back. does [NSView dataWithEPS

Re: binding to static text

2008-09-10 Thread Charles Steinman
--- On Wed, 9/10/08, James Walker <[EMAIL PROTECTED]> wrote: > I have a static text item whose value is bound to an > NSUserDefaultsController. It correctly shows the value > stored as a > default. However, if I programmatically change the text > (with > -[NSControl setStringValue:]), the new

Re: EPS

2008-09-10 Thread has
Georg Seifert wrote: is there a way to create EPS data from code? I need it to put in in pastboard. Does anyone can point my to some docs as I cant find any. http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaDrawingGuide What I want to do, is to copy a NSBezierPath to Illustrato

Re: Calculate minutes and seconds

2008-09-10 Thread J. Todd Slack
Graham, This is a good idea, I forgot about using the mod operation. -Jason On Sep 10, 2008, at 7:02 PM, Graham Cox wrote: On 11 Sep 2008, at 11:46 am, J. Todd Slack wrote: Example: 65 seconds should be 00:01:05 If your question was about how to create this (as a string, say) from a n

Re: Calculate minutes and seconds

2008-09-10 Thread Graham Cox
On 11 Sep 2008, at 11:46 am, J. Todd Slack wrote: Example: 65 seconds should be 00:01:05 If your question was about how to create this (as a string, say) from a number of seconds, try: int hours, minutes, seconds; hours = rawSeconds / 3600; minutes = (rawSeconds / 60) % 60; seconds = ra

Re: Calculate minutes and seconds

2008-09-10 Thread Philip Ershler
On Sep 10, 2008, at 7:46 PM, J. Todd Slack wrote: Hi All, Does anyone have an example of deciding when you have more than 60 seconds you have minutes and seconds? (hh:mm:ss) Example: 65 seconds should be 00:01:05 Thanks! -Jason Try googling for modulo (arithmetic ) Phil ___

Re: Calculate minutes and seconds

2008-09-10 Thread Graham Cox
On 11 Sep 2008, at 11:46 am, J. Todd Slack wrote: Hi All, Does anyone have an example of deciding when you have more than 60 seconds you have minutes and seconds? (hh:mm:ss) Example: 65 seconds should be 00:01:05 if( seconds > 59 ) { ++minutes; seconds = 0; } or, if you can't

Calculate minutes and seconds

2008-09-10 Thread J. Todd Slack
Hi All, Does anyone have an example of deciding when you have more than 60 seconds you have minutes and seconds? (hh:mm:ss) Example: 65 seconds should be 00:01:05 Thanks! -Jason ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

binding to static text

2008-09-10 Thread James Walker
I have a static text item whose value is bound to an NSUserDefaultsController. It correctly shows the value stored as a default. However, if I programmatically change the text (with -[NSControl setStringValue:]), the new value does not get saved. What am I missing? -- James W. Walker, Inn

[Moderator] Re: OT: Installing Apps

2008-09-10 Thread Scott Anguish
this has (as the title clearly indicates) become off-topic. time to take this off cocoa-dev. I'd suggest the installer-dev mailing list. scott moderator On 10-Sep-08, at 3:41 PM, Steven W Riggins wrote: I'd venture to add "Disabled" I for one, being a Mac user since Feb, 1984, am dismaye

Re: How to determine if the system is started up from firewire disk

2008-09-10 Thread Ryota Tsukiashi
Hi Chris, Thank you. I will try FSMegaInfo as well. Ryota 2008/9/10 Ken Thomases <[EMAIL PROTECTED]>: > On Sep 9, 2008, at 10:23 PM, Chris Suter wrote: > >> On Wed, Sep 10, 2008 at 10:10 AM, Ryota Tsukiashi >> <[EMAIL PROTECTED]>wrote: >> >>> I am writing a cocoa application for our firweire dev

Re: How to determine if the system is started up from firewire disk

2008-09-10 Thread Ryota Tsukiashi
Hi Chris, Thank you. I will try IOServiceGetMatchingService to get the imformation. Ryota 2008/9/9 Chris Suter <[EMAIL PROTECTED]>: > > > On Wed, Sep 10, 2008 at 10:10 AM, Ryota Tsukiashi <[EMAIL PROTECTED]> > wrote: >> >> I am writing a cocoa application for our firweire device. I need to >> kn

Re: BOOL array

2008-09-10 Thread Scott Ribe
Of course there's always std::vector< bool > ;-) usually at 1 bit per bit... -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Something truly fundamental I must be missing...

2008-09-10 Thread Seth Willits
On Sep 10, 2008, at 3:51 PM, Joel Sherriff wrote: As you can see, I've tried creating the Dialog object itself, and the managing Controller class...no joy in either case. I feel like the issue is somewhere in the .nib file - some missing wiring which of course is impossible to display here

Re: NSTimer in main NSRunLoop v. InstallEventLoopTimer

2008-09-10 Thread Wesley Smith
On Wed, Sep 10, 2008 at 8:04 AM, Ken Thomases <[EMAIL PROTECTED]> wrote: > On Sep 10, 2008, at 4:19 AM, Wesley Smith wrote: > >> I'm trying to figure out how I can have my app run a timer that never >> suspends when the user interacts with menus and the like. > > You can use -[NSRunLoop addTimer:fo

Re: Accepting files dragged from iTunes in a Cocoa app

2008-09-10 Thread Stephen F. Booth
Stefan, I use the following code to get the URLs from dragged files from iTunes: NSString * const iTunesPboardType = @"CorePasteboardFlavorType 0x6974756E"; // Handle iTunes drops else if([bestType isEqualToString:iTunesPboardType]) { NSDictionary *iTunesDictionary = [[info draggingPasteboard]

Re: Accepting files dragged from iTunes in a Cocoa app

2008-09-10 Thread Stephen F. Booth
Stefan, I use the following code to get the URLs from dragged files from iTunes: NSString * const iTunesPboardType = @"CorePasteboardFlavorType 0x6974756E"; // Handle iTunes drops else if([bestType isEqualToString:iTunesPboardType]) { NSDictionary *iTunesDictionary = [[info draggingPasteboard]

Re: mailbundle info

2008-09-10 Thread Chris Hanson
On Sep 10, 2008, at 3:00 PM, Stephane Huaulme wrote: where can i find info on how to create a mailbundle? Mail does not have a public plug-in API. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin request

Re: Something truly fundamental I must be missing...

2008-09-10 Thread Markus Spoettl
On Sep 10, 2008, at 3:51 PM, Joel Sherriff wrote: -- DialogController.m: #import DialogController.h @implementation DialogController - (id) init { self = [super init]; return self; } - (void) showDialog { [Dial

Re: API for secured web service communication (WSSE)

2008-09-10 Thread Meik Schuetz
Dear Alex Thank you for your ideas. As far as I know the WebServiceCore does not support message encryption and credentials, and unfortunatly this is exactly what I need. You are completly right when you compare Cocoa with Win32 programming, I just hoped there would be a simple solution to

Re: How to determine if the system is started up from firewire disk

2008-09-10 Thread Ryota Tsukiashi
Hi Andrew, This is not a bug, but thank you for letting me know about NDA. Ryota 2008/9/9 Andrew Merenbach <[EMAIL PROTECTED]>: > On Sep 9, 2008, at 5:10 PM, Ryota Tsukiashi wrote: > >> Hi, >> >> I am writing a cocoa application for our firweire device. I need to >> know if the system is started

Something truly fundamental I must be missing...

2008-09-10 Thread Joel Sherriff
I've been writing in Cocoa for a whopping 4-5 days now and have yet to be able to do anything without help...not sure what that says about me or Cocoa. But at any rate, here I go again... I've written an app that works just fine, but now I want to add a dialog that displays when I want it to

Re: API for secured web service communication (WSSE)

2008-09-10 Thread Alex Kac
Also if you're using SOAP - here is some open source: http://ditchnet.org/soapclient/ On Sep 10, 2008, at 5:45 PM, Alex Kac wrote: As someone who has written many of these over the years on Windows and recently in Cocoa - its important to note that all of these cloud computing methodologies

Re: API for secured web service communication (WSSE)

2008-09-10 Thread Alex Kac
As someone who has written many of these over the years on Windows and recently in Cocoa - its important to note that all of these cloud computing methodologies are just HTTP POST and GET at the basic level. This is an area that .NET works great in, but if you use Win32 you are at a level o

Re: NSTableView selection Delegate Methods being called twice?

2008-09-10 Thread Corbin Dunn
It's an implementation issue with NSTableView. Feel free to log a bug (there already are bugs logged for this issue). You'll have to work around it. Keep track of the fact that you are showing the dialog, and keep returning the same index set to avoid changing the selection. corbin On Sep

Re: Menu for multiple document types

2008-09-10 Thread Sherm Pendley
On Wed, Sep 10, 2008 at 5:56 PM, David <[EMAIL PROTECTED]> wrote: > What is the convention of the application menu when an application > supports multiple document types? > > Should the menu change to show the actions available to the type of > document currently open? No, changing menus are not

NSTableView selection Delegate Methods being called twice?

2008-09-10 Thread Robert Kukuchka
Hello, I'm trying to handle some selection switching of an NSTableView, but I'm getting double the calls I "expect". Why is this, or have I done something wrong? Cheers, Rob BT #1 #1 0x92a2400f in -[NSTableView _sendDelegateSelectionIndexesForProposedSelection:] () #2 0x927fe124 in -[NS

Re: C/Obj-C API Confusion

2008-09-10 Thread Charles Steinman
--- On Wed, 9/10/08, J. Todd Slack <[EMAIL PROTECTED]> wrote: > So if I have an objective C class, how can I call a .c > class? and pass > my arguments from the objective-c class? C doesn't have classes. That's almost the entire difference between it and Objective-C. Have you called NSLog? NSM

mailbundle info

2008-09-10 Thread Stephane Huaulme
where can i find info on how to create a mailbundle? thx stephane ___ 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)lists.apple.co

Menu for multiple document types

2008-09-10 Thread David
What is the convention of the application menu when an application supports multiple document types? Should the menu change to show the actions available to the type of document currently open? Can the menu show the superset of actions available to each document type, then disable the actions (bu

Re: C/Obj-C API Confusion

2008-09-10 Thread Nick Zitzmann
On Sep 10, 2008, at 3:43 PM, J. Todd Slack wrote: So passing a Movie (Which I have created), not sure what to pass in for FSSpec yet. FSSpecs are data structures created by the Carbon File Manager. You'll find out more about them in the documentation by the same name. Keep in mind that

Re: C/Obj-C API Confusion

2008-09-10 Thread J. Todd Slack
Hi Jason, So if I have an objective C class, how can I call a .c class? and pass my arguments from the objective-c class? What kind of ".c class"? And what kind of arguments? It might help to give the prototype of some of the functions that you want to call in the QTKit, or at least the nam

Re: C/Obj-C API Confusion

2008-09-10 Thread Jason Coco
On Sep 10, 2008, at 17:31 , J. Todd Slack wrote: Hi Sherm, So if I have an objective C class, how can I call a .c class? and pass my arguments from the objective-c class? What kind of ".c class"? And what kind of arguments? It might help to give the prototype of some of the functions tha

API for secured web service communication (WSSE)

2008-09-10 Thread Meik Schuetz
Dear all, Did anyone made experiences creating a native client application, which communicates with a secured web service? Is there any API which I could use to accomplish this? In times where everyone is talking about SOA and cloud computing I find it hard to believe that there's nothin

Re: C/Obj-C API Confusion

2008-09-10 Thread J. Todd Slack
Hi Sherm, So if I have an objective C class, how can I call a .c class? and pass my arguments from the objective-c class? -Jason On Sep 10, 2008, at 12:56 PM, Sherm Pendley wrote: On Wed, Sep 10, 2008 at 3:44 PM, J. Todd Slack <[EMAIL PROTECTED] > wrote: I had a conversation with an Ap

Re: CoreData with ODBC as the Object Store

2008-09-10 Thread Martin Stoufer
lbland wrote: On Sep 10, 2008, at 1:40 PM, Martin Stoufer wrote: I have been pouring over the archives and digging around the net to see what the current status of this is. It looks like Apple does not have any current plans to expose an ODBC type as a data store(?) and the current work ar

Re: Accessibility Voiceover questions

2008-09-10 Thread Ricky Sharp
On Sep 10, 2008, at 2:44 PM, Matthew Mashyna wrote: I have a custom view that is a subclass of NSView with a bunch of subviews. When Voiceover is on it will speak the text that is in the subviews but that's not what I want. I would like my view class to control what is spoken but I can't

Accessibility Voiceover questions

2008-09-10 Thread Matthew Mashyna
I have a custom view that is a subclass of NSView with a bunch of subviews. When Voiceover is on it will speak the text that is in the subviews but that's not what I want. I would like my view class to control what is spoken but I can't figure out how to do it. I would also like to have i

Re: C/Obj-C API Confusion

2008-09-10 Thread J. Todd Slack
Hi, Well, I need to take a chunk out of an .mp3 and save just that chunk as a .WAV. There seems to be a bug that is rather long standing that an Apple Engineer said the C-API might be my best bet. -Jason On Sep 10, 2008, at 12:50 PM, I. Savant wrote: On Wed, Sep 10, 2008 at 3:44 PM,

Re: menu with checkbox

2008-09-10 Thread Igor Mozolevsky
2008/9/10 Andrew Farmer <[EMAIL PROTECTED]>: > No, a checkbox would look rather different... here, let me mock up what I > was thinking the OP was asking for. > > > > If what they're after is simply the check marks that Safari and other > applications use in men

Re: C/Obj-C API Confusion

2008-09-10 Thread Ken Thomases
On Sep 10, 2008, at 2:44 PM, J. Todd Slack wrote: I had a conversation with an Apple Engineer a few days ago and he recommended that I switch to the Quicktime C API rather than the Objective-C api for what I needed to do. I have a few questions. 1. Currently I have a .m and I use NSTask, N

Re: C/Obj-C API Confusion

2008-09-10 Thread Sherm Pendley
On Wed, Sep 10, 2008 at 3:44 PM, J. Todd Slack < [EMAIL PROTECTED]> wrote: > > I had a conversation with an Apple Engineer a few days ago and he > recommended that I switch to the Quicktime C API rather than the Objective-C > api for what I needed to do. > > I have a few questions. Okay - I'll s

Re: C/Obj-C API Confusion

2008-09-10 Thread Andrew Farmer
On 10 Sep 08, at 12:44, J. Todd Slack wrote: 1. Currently I have a .m and I use NSTask, NSString, etc. I would need to change these for C, correct? What is NSTask in the C API? Irrelevant; see below. (For reference, however, a common equivalent to NSTask is popen().) 2. Am I confused? Y

Re: C/Obj-C API Confusion

2008-09-10 Thread I. Savant
On Wed, Sep 10, 2008 at 3:44 PM, J. Todd Slack <[EMAIL PROTECTED]> wrote: > > I had a conversation with an Apple Engineer a few days ago and he > recommended that I switch to the Quicktime C API rather than the Objective-C > api for what I needed to do. Okay, there's probably no "Cocoa way" to d

C/Obj-C API Confusion

2008-09-10 Thread J. Todd Slack
I had a conversation with an Apple Engineer a few days ago and he recommended that I switch to the Quicktime C API rather than the Objective-C api for what I needed to do. I have a few questions. 1. Currently I have a .m and I use NSTask, NSString, etc. I would need to change these for C

Re: OT: Installing Apps

2008-09-10 Thread Steven W Riggins
I'd venture to add "Disabled" I for one, being a Mac user since Feb, 1984, am dismayed at the current state of delivering Mac software. My mom never, ever figures out the drag to apps thing. But she does understand "Double click to install" *for whatever reason* Often apps end up on the

Re: menu with checkbox

2008-09-10 Thread Andrew Farmer
On 10 Sep 08, at 12:02, Igor Mozolevsky wrote: 2008/9/10 Andrew Farmer <[EMAIL PROTECTED]>: On 10 Sep 08, at 08:20, Georg Seifert wrote: I have a NSPopupButton. What I need is that each item has a checkbox in front of its label. The menu needs to be selectable like with any normal NSPupupB

Re: NSTimer retain and release questions

2008-09-10 Thread Randall Meadows
On Sep 10, 2008, at 12:44 PM, Bill wrote: On Sep 10, 2008, at 11:37 AM, Bill Bumgarner wrote: On Sep 10, 2008, at 11:21 AM, Kyle wrote: The documentation for this autoreleased method: + (NSTimer *)scheduledTimerWithTimeInterval: (NSTimeInterval)seconds target:(id)target selector:(SEL)aSelecto

Re: NSTimer retain and release questions

2008-09-10 Thread Sherm Pendley
On Wed, Sep 10, 2008 at 2:44 PM, Bill <[EMAIL PROTECTED]> wrote: > > Part of the reason I'm asking is because originally I used the above method > with a retain (and released later with the invalidate method), and then ran > my app with Leaks, and Leaks told me that the timer was leaking. > That'

Re: NSTimer retain and release questions

2008-09-10 Thread Ken Thomases
On Sep 10, 2008, at 1:44 PM, Bill wrote: On Sep 10, 2008, at 11:37 AM, Bill Bumgarner wrote: On Sep 10, 2008, at 11:21 AM, Kyle wrote: The documentation for this autoreleased method: + (NSTimer *)scheduledTimerWithTimeInterval: (NSTimeInterval)seconds target:(id)target selector:(SEL)aSelec

Re: NSTimer retain and release questions

2008-09-10 Thread Bill
On Sep 10, 2008, at 11:37 AM, Bill Bumgarner wrote: On Sep 10, 2008, at 11:21 AM, Kyle wrote: The documentation for this autoreleased method: + (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds target:(id)target selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)r

Re: HTTP chunked transfer encoding implementation

2008-09-10 Thread Nick Zitzmann
On Sep 10, 2008, at 9:15 AM, Roman Kishchenko wrote: So, the solution to the problem seems to implement HTTP protocol from scratch using sockets and streams and handle described above chunk send semantics there. Before embarking on this interesting programming exercise, I am wondering if th

Re: menu with checkbox

2008-09-10 Thread Andrew Farmer
On 10 Sep 08, at 08:20, Georg Seifert wrote: I have a NSPopupButton. What I need is that each item has a checkbox in front of its label. The menu needs to be selectable like with any normal NSPupupButton but when I click the checkbox it should just check the box but should not change the sel

Re: NSTimer retain and release questions

2008-09-10 Thread Bill Bumgarner
On Sep 10, 2008, at 11:21 AM, Kyle wrote: The documentation for this autoreleased method: + (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds target:(id)target selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)repeats states: "If repeats is NO, the timer will be i

NSTimer retain and release questions

2008-09-10 Thread Kyle
The documentation for this autoreleased method: + (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds target:(id)target selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)repeats states: "If repeats is NO, the timer will be invalidated after it fires." If I call t

Re: Cocoa-dev Digest, Vol 5, Issue 1598

2008-09-10 Thread Brad O'Hearne
Not to kick a dead horse, or repeat my other post here, but one of things I appreciate greatly about Apple's products is the true design- centric approach to interfaces, as is demonstrated in their software apps and hardware such as the iPod and iPhone. The install / uninstall situation on M

Re: Cocoa-dev Digest, Vol 5, Issue 1598

2008-09-10 Thread David
Dragging an application to "Applications" may seem hard or unusual to a user the 1st time they ever install an application on the Mac, but after that its the assumed way to install applications. Consistency is a big deal. Apple should define and enable some consistent application installation mode

Re: NSInvocation

2008-09-10 Thread Michael Ash
On Wed, Sep 10, 2008 at 1:03 PM, Michael Ash <[EMAIL PROTECTED]> wrote: > And in case anybody is wondering how the heck this works when the > method isn't implemented, it's actually pretty straightforward. Cocoa > has an internal function which builds an NSInvocation from the method > arguments, th

CoreData with ODBC as the Object Store

2008-09-10 Thread Martin Stoufer
I have been pouring over the archives and digging around the net to see what the current status of this is. It looks like Apple does not have any current plans to expose an ODBC type as a data store(?) and the current work around is to stage the content from the db as a file on the system and u

OT: Uninstallers (Was: Cocoa-dev Digest, Vol 5, Issue 1598)

2008-09-10 Thread Brad O'Hearne
This is starting to stray a bit from Cocoa code talk, but as a bit of feedback to all Cocoa developers out there who are developing applications to ship to end-users (in contrast to internal corp apps), the lack of uninstallers on Mac apps seems to be a notable omission, for an otherwise st

Re: While we're on the subject of DMG's for software distribution...

2008-09-10 Thread Charles Srstka
On Sep 10, 2008, at 11:49 AM, Sherm Pendley wrote: Yeah, if only there were an app that would let users look inside installer packages... It would ease their troubled minds, so perhaps it could be called "Peaceful" or something like that... :-) Yup, and a big reason I wrote it was to get ar

Re: BOOL array

2008-09-10 Thread Joel Norvell
Yes, only storing "ones" would work well with NSMutableIndexSet's containsIndex method. If you didn't get a "hit" you'd know that that position was a "zero." I was incorrectly thinking of NSMutableIndexSet as an array. --- On Wed, 9/10/08, Shawn Erickson <[EMAIL PROTECTED]> wrote: > On Wed, S

Re: NSInvocation

2008-09-10 Thread Michael Ash
On Wed, Sep 10, 2008 at 11:36 AM, Ken Thomases <[EMAIL PROTECTED]> wrote: > On Sep 10, 2008, at 10:24 AM, Michael Ash wrote: > >> On Wed, Sep 10, 2008 at 11:13 AM, Ken Thomases <[EMAIL PROTECTED]> >> wrote: >>> >>> On Sep 10, 2008, at 9:52 AM, Michael Ash wrote: >>> And lastly, I recommend fil

Re: [moderator] Re: While we're on the subject of DMG's for software distribution...

2008-09-10 Thread Scott Anguish
whether it is an issue of trust or not isn't really relevant to this list. As I said, this isn't to be debated here. I'll see about the documentation issue, but if we're not talking about how to construct an DMG, or installer, or the docs about it, it is _off topic_. On 10-Sep-08, at 12

Re: While we're on the subject of DMG's for software distribution...

2008-09-10 Thread Sherm Pendley
On Wed, Sep 10, 2008 at 3:40 AM, Charles Srstka <[EMAIL PROTECTED]>wrote: > > Anyway, if Mac software starts heading back down the road to everything > having an installer, the appeal of the Mac platform vs. Windows will be > severely diminished in my eyes. I agree with you to a point, but... "s

Re: No action msg after NSPathControl "Choose"

2008-09-10 Thread Sean McBride
On 9/9/08 4:19 PM, David Hoerl said: >The NSPathControl.h file says that when in Popup mode, the control >will send a action message. However, I cannot get it to work. I've >tried using no types, and a type of "public.folder". > >Is this a known problem? Yes. The work around given to me was to s

Re: BOOL array

2008-09-10 Thread Shawn Erickson
On Wed, Sep 10, 2008 at 9:18 AM, Joel Norvell <[EMAIL PROTECTED]> wrote: > OK. I think I've got it. One could use an increasing sequence of integers, > letting evenness and oddness determine the boolean state at any index. That > would save a huge amount of "overhead" in this case! You only n

Re: BOOL array

2008-09-10 Thread Igor Mozolevsky
2008/9/10 Joel Norvell <[EMAIL PROTECTED]>: > OK. I think I've got it. One could use an increasing sequence of integers, > letting evenness and oddness determine the boolean state at any index. That > would save a huge amount of "overhead" in this case! Is the size of the boolean set always f

Re: BOOL array

2008-09-10 Thread Joel Norvell
OK. I think I've got it. One could use an increasing sequence of integers, letting evenness and oddness determine the boolean state at any index. That would save a huge amount of "overhead" in this case! --- On Wed, 9/10/08, Todd Blanchard wrote: > Well, if I read it right, he's using the NS

Re: [moderator] Re: While we're on the subject of DMG's for software distribution...

2008-09-10 Thread David
In my mind, the installer issue is an issue of trust. Do you trust the "installer" of an application to install the application in the best interest of the user. Do you trust that the installer won't install things you don't want. Do you trust that the installer provides a way to uninstall the app

Re: Accepting files dragged from iTunes in a Cocoa app

2008-09-10 Thread Stefan Haller
Gregory Weston <[EMAIL PROTECTED]> wrote: > Stefan Haller wrote: > > > In a Carbon application I solved the problem by handling the > > kDragPromisedFlavorFindFile flavor, which worked quite well. How do I > > do this in a Cocoa app though? I can't find any NS*PboardType that > > seems to relat

Re: NSInvocation

2008-09-10 Thread Ken Thomases
On Sep 10, 2008, at 10:24 AM, Michael Ash wrote: On Wed, Sep 10, 2008 at 11:13 AM, Ken Thomases <[EMAIL PROTECTED]> wrote: On Sep 10, 2008, at 9:52 AM, Michael Ash wrote: And lastly, I recommend filing a bug against the documentation in this case. NSInvocation is not really suited for this

Re: menu with checkbox

2008-09-10 Thread Steven W Riggins
Try: http://www.cocoabuilder.com/archive/message/cocoa/2007/11/7/192532 On Sep 10, 2008, at 8:20 AM, Georg Seifert wrote: hello, I have a NSPopupButton. What I need is that each item has a checkbox in front of its label. The menu needs to be selectable like with any normal NSPupupButton b

Re: NSInvocation

2008-09-10 Thread Michael Ash
On Wed, Sep 10, 2008 at 11:13 AM, Ken Thomases <[EMAIL PROTECTED]> wrote: > On Sep 10, 2008, at 9:52 AM, Michael Ash wrote: > >> And lastly, I recommend filing a bug against the documentation in this >> case. NSInvocation is not really suited for this particular task, and >> I don't understand why

menu with checkbox

2008-09-10 Thread Georg Seifert
hello, I have a NSPopupButton. What I need is that each item has a checkbox in front of its label. The menu needs to be selectable like with any normal NSPupupButton but when I click the checkbox it should just check the box but should not change the selection. Does anyone can help me wit

Re: Accepting files dragged from iTunes in a Cocoa app

2008-09-10 Thread Gregory Weston
Stefan Haller wrote: When dragging files from iTunes, iTunes sends the following drag flavors (according to DragPeeker X): phfs (kDragFlavorTypePromiseHFS) rWm1 (kDragPromisedFlavorFindFile) Hpfl itun I can't find any reference to the last two on the web, so I assume they are priv

HTTP chunked transfer encoding implementation

2008-09-10 Thread Roman Kishchenko
Hi, I have the following use case. The client is making an HTTP POST request and would like to use chunked transfer encoding to send chunks of binary data to the server as they are generated. In particular, the client would like to avoid accumulating the data in its entirety before sending it to th

Re: NSInvocation

2008-09-10 Thread Ken Thomases
On Sep 10, 2008, at 9:52 AM, Michael Ash wrote: On Wed, Sep 10, 2008 at 2:56 AM, Chris Idou <[EMAIL PROTECTED]> wrote: I have a need to call performSelector:withObject etc, except I need to pass 3 arguments. The doco to performSelector:withObject:withObject says to "See NSInvocation", wh

EPS

2008-09-10 Thread Georg Seifert
hello, is there a way to create EPS data from code? I need it to put in in pastboard. Does anyone can point my to some docs as I cant find any. What I want to do, is to copy a NSBezierPath to Illustrator and back. Thanks Georg ___ Cocoa-dev mailing

  1   2   >