Re: NSInvocation

2008-09-10 Thread Sherm Pendley
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", which I have done, but I don't understand how to use

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

2008-09-10 Thread Charles Srstka
On Sep 9, 2008, at 4:26 PM, Bill Cheeseman wrote: The poster didn't say why he assumes the Software Delivery Guide to be more authoritative. The only evidence I'm aware of is that the Software Delivery Guide was last updated over two years ago, in July 2006, before Leopard was released. The

Re: BOOL array

2008-09-10 Thread Todd Blanchard
Well, if I read it right, he's using the NSString as a very expensive bit vector - only storing 0's and 1's. If instead of storing a '1' at position n he sticks n into the NSMutableIndexSet, it amounts to the same thing. He can keep an array of NSMutableIndexSets instead of an array of NSSt

Re: Problems with Key Observing Registration Performance

2008-09-10 Thread Markus Spoettl
On Sep 9, 2008, at 9:36 PM, Seth Willits wrote: Surely adding 330 items to an array shouldn't take a minute on any machine from this century. I think your code is doing something you're not realizing. You could: a) have a method that on each observation explicitly creates a bajillion objects

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

2008-09-10 Thread Ken Thomases
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 device. I need to know if the system is started up from firewire disk. For PowerPC with Mac OSX 10.4/10.5, I have used i

Re: Problems with Key Observing Registration Performance

2008-09-10 Thread Seth Willits
On Sep 10, 2008, at 1:04 AM, Markus Spoettl wrote: On Sep 9, 2008, at 9:36 PM, Seth Willits wrote: Surely adding 330 items to an array shouldn't take a minute on any machine from this century. I think your code is doing something you're not realizing. You could: a) have a method that on each

Re: Multiple Document types

2008-09-10 Thread Seth Willits
On Sep 9, 2008, at 11:59 PM, Chris Idou wrote: I have an app which can open and create multiple document types. With the standard framework, the New menu item seems to just create a document of one of those types. Am I supposed to write my own dialog box to ask the user what type of documen

Re: Do I Need Multiple NSArrayControllers For This?

2008-09-10 Thread Negm-Awad Amin
Am Di,09.09.2008 um 16:11 schrieb Jamie Phelps: I have a Core Data entity that has a date and relationship. I want to create a label like. "25 Foos (12 New)" A Foo is active if it its relationship is null and it is new if its date is within the startDate and endDate specified by the user.

Re: Problems with Key Observing Registration Performance

2008-09-10 Thread Ken Thomases
On Sep 9, 2008, at 8:48 PM, Markus Spoettl wrote: On Sep 9, 2008, at 5:28 PM, Markus Spoettl wrote: These numbers come from a test case with 140 objects, when I double the object number, the test never finishes (at least not within 10 minutes). OK, I did some more testing and timing and t

NSApplication in Carbon application

2008-09-10 Thread brodhage
Hello, first of all I do not know if it is correct to send this message to you. I allready posted my question to discussions.apple.com but it seems that nobody knows an answer. By the way: after posting the message to discussions.apple.com some characters were removed (brackets and some mor

Re: Problems with Key Observing Registration Performance

2008-09-10 Thread Negm-Awad Amin
Am Mi,10.09.2008 um 03:48 schrieb Markus Spoettl: On Sep 9, 2008, at 5:28 PM, Markus Spoettl wrote: These numbers come from a test case with 140 objects, when I double the object number, the test never finishes (at least not within 10 minutes). OK, I did some more testing and timing and

Best approach to long running tasks.

2008-09-10 Thread Tom Fortmann
I'm looking for suggestions on how to best handle long running tasks. My app has a simple button connected to an Objective-C method. When I click the button the method is called and a series of steps are performed. Each involves some network activity and may take a second or two. I would like t

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

2008-09-10 Thread Scott Anguish
probably best not to debate this particular aspect of things... As I said, I'll about getting this clarified in the docs, and a consistent message in it. On 10-Sep-08, at 3:40 AM, Charles Srstka wrote: On Sep 9, 2008, at 4:26 PM, Bill Cheeseman wrote: The poster didn't say why he assumes

Re: Do I Need Multiple NSArrayControllers For This?

2008-09-10 Thread Benjamin Stiglitz
I have a Core Data entity that has a date and relationship. I want to create a label like. "25 Foos (12 New)" A Foo is active if it its relationship is null and it is new if its date is within the startDate and endDate specified by the user. My intuition is that this does require two NSArr

Accepting files dragged from iTunes in a Cocoa app

2008-09-10 Thread Stefan Haller
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 private flavors. In a Carbon app

[MEET] CocoaHeads-NYC Thursday 9/11

2008-09-10 Thread Andy Lee
The September meeting of CocoaHeads-NYC is Thursday 9/11 from 6:00 to 8:00 at Tekserve, at 119 West 23rd between 6th and 7th . Jon Nathan will talk about making your app scriptable. I'm sure we'll also talk about C4. Afterwards, food and beer as usual. --Andy _

Re: Best approach to long running tasks.

2008-09-10 Thread Ken Thomases
On Sep 10, 2008, at 7:58 AM, Tom Fortmann wrote: I'm looking for suggestions on how to best handle long running tasks. My app has a simple button connected to an Objective-C method. When I click the button the method is called and a series of steps are performed. Each involves some netwo

RE: Best approach to long running tasks.

2008-09-10 Thread Tom Fortmann
Wow - thank you. This helps a lot. I've read the thread programming guide - I just wish it included more high-level design considerations and suggestions such as these. Thanks again, Tom ___ Thomas Fortmann Director of Development Xcape Solutions, Inc

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

2008-09-10 Thread Bill Royds
On 10-Sep-08, at 04:59 , [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. Drag and drop puts the user in control - installers put the user

NSTimer in main NSRunLoop v. InstallEventLoopTimer

2008-09-10 Thread Wesley Smith
Hi, 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. In Carbon, one can do: EventLoopRef mainLoop; EventLoopTimerUPP timerUPP; EventLoopTimerRef theTimer; mainLoop = GetMainEventLoop();

Re: NSInvocation

2008-09-10 Thread Michael Ash
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", which I have done, but I don't understand how to us

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

2008-09-10 Thread Tom Fortmann
I'm new and jumping in late and really don't have much to add except you are both right. At its core I think it's important that OS X hold true to the concept that any Application can be installed and deleted through a simple drag and drop operation. Installers aren't a bad thing. They help user

Re: NSTimer in main NSRunLoop v. InstallEventLoopTimer

2008-09-10 Thread Ken Thomases
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:forMode:] to schedule the timer on additional run-loop modes. You might want to u

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

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

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: 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

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: 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

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 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: 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: [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: 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: 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 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: 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: 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: [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: 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: 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: 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

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

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

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

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: 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

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: 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

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: 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: 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: 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 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 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: 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: 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

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: 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

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 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 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: 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 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,

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: 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

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: 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

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 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

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 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

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

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

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

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: 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

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: 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: 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

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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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

[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

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

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

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

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: 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 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: 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

  1   2   >