Re: Get list of possible applications

2008-04-20 Thread Daniel
Hi, thank you very much for your help, I was searching exactly that! Best regards, Daniel On Sun, Apr 20, 2008 at 5:15 PM, Gerd Knops [EMAIL PROTECTED] wrote: On Apr 19, 2008, at 11:33 PM, Chris Hanson wrote: On Apr 19, 2008, at 9:55 AM, Gerd Knops wrote: This returns an array

Re: Proxy Window of another

2008-05-04 Thread Daniel
On Sun, May 4, 2008 at 12:30 AM, Jean-Daniel Dupas [EMAIL PROTECTED] wrote: Override the -[NSWindow sendEvent:] method and pass the event parameter to the target window sendEvent: method. Thank you very much! On Sun, May 4, 2008 at 12:34 AM, Jean-Daniel Dupas [EMAIL PROTECTED] wrote

Send Key Event to Focused Window

2008-06-18 Thread Daniel
] context:[[NSApp keyWindow] graphicsContext] characters:@Q charactersIgnoringModifiers:@Q isARepeat:NO keyCode:0]; [keyTarget keyDown:aKeyDownEvent]; /snippet Thank you in advance, Daniel

Re: Send Key Event to Focused Window

2008-06-18 Thread Daniel
the event (e.g. Safari) to the right application. Is there a way to build a focus-less application/window? Thanks Daniel On Wed, Jun 18, 2008 at 9:48 AM, j o a r [EMAIL PROTECTED] wrote: On Jun 18, 2008, at 12:31 AM, Daniel wrote: I'm developing a tool for assistive input and my question

Re: Send Key Event to Focused Window

2008-06-19 Thread Daniel
not work. Has someone experience with these kind of Quartz Events? The final goal should be to have a basic screen keyboard, where a person can click a button and a keyboard stroke is simulated. Thank you for your answers :-) Daniel On Wed, Jun 18, 2008 at 4:39 PM, j o a r [EMAIL PROTECTED] wrote

Open Window from Input Manager

2008-10-28 Thread Daniel
loadWindow]: failed to load window nib file 'Chooser' Is there another way to do it right? I've basically the need to open a panel/window, change the keyboard focus from the textfield to the opened panel and then continue by closing the panel. Best regards, Daniel R

Re: Open Window from Input Manager

2008-10-29 Thread Daniel
still stuck in trying to load a window from a NIB file inside my bundle ... can someone help me? Best regards, Daniel On Wed, Oct 29, 2008 at 4:49 AM, [EMAIL PROTECTED] wrote: Hi, I'm working on a project for inserting special characters in text fields in all Cocoa apps by means of an Input

Re: Open Window from Input Manager

2008-10-29 Thread Daniel
: self]; [controller showWindow:self]; /snippet thank all for the help! Daniel On Wed, Oct 29, 2008 at 4:25 PM, Michael Ash [EMAIL PROTECTED] wrote: On Wed, Oct 29, 2008 at 9:29 AM, Daniel [EMAIL PROTECTED] wrote: Hi, thank you for your reply. Does this mean that I'm

Re: Open Window from Input Manager

2008-10-29 Thread Daniel
wow, now it my code looks much nicer :-) thank you very much! Daniel On Wed, Oct 29, 2008 at 5:20 PM, Douglas Davidson [EMAIL PROTECTED] wrote: On Oct 29, 2008, at 9:16 AM, Daniel wrote: [NSString stringWithFormat:@%@/Contents/Resources/Chooser.nib, [bundle bundlePath]] I'm afraid I

Open/Show window from external NIB

2008-11-07 Thread Daniel
of a NSTextView. The problem is that nothing is showed and no error is raised. Most probably, this is a typical newbie question, but my searches on Google didn't turn out any solutions to my problem. Thanks in advance, Daniel ___ Cocoa-dev mailing list (Cocoa

Re: quirky default button coloring

2008-02-21 Thread Daniel Child
You're right it turned out to be a focus issue. I was looking into FirstResponder (before posting the question but it didn't seem right), but as Ken Ferry pointed out, the issue was actually on my computer: a preference setting where focus moves to all objects, not just text fields. Plus

programmatically placing GUIs

2008-02-27 Thread Daniel Child
, not the one modified programmatically. I feel I am going about this the wrong way but don't see any documentation on this particular issue. If anyone could shed some light on the procedure, it would be a big help. Thanks. Daniel ___ Cocoa-dev

best time to alter GUIs

2008-02-28 Thread Daniel Child
I am trying to understand the interrelationship between various method calls made once a window controller is instantiated. I am loading a window controller from within a master controller. Data passed from the master controller to the window controller is used to programmatically alter

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

2008-02-29 Thread Daniel Child
Visible at launch is not checked. But are you suggesting that you cannot configure the window prior to displaying it? Or do you distinguish load from display? I'm trying to load it into memory, alter it, and then display. Judging from debug sessions, the window and other top level objects

Re: GetMonitorFromWindow

2008-03-07 Thread Daniel Kennett
fine, so who knows? (I've only just realised I'm quoting a Blizzard guy!) -- Daniel On 7 Mar 2008, at 16:38, John Stiles wrote: I'm going to jump on the bandwagon and say that your client is wrong. Mac apps do not and should not do

encoding objects containing NSData ivars using NSKeyedArchiver

2008-03-12 Thread Daniel Thorpe
Hello everyone! I'm trying to archive an object using NSKeyedArchiver. The object is question has quite a complex structure, and one of it's instance variables is an NSMutableData. I've tried using [coder encodeObject:result forKey:@TchebichefMoment_momentData]; which doesn't seem to do

Re: runtime error

2008-03-12 Thread Daniel Child
On Mar 12, 2008, at 12:00 PM, [EMAIL PROTECTED] wrote: Some points of interest: 1. vm_allocate(size=1069056) - Is each of your 'thousands and thousands of records' this large? If so then it is no wonder that you will run out of address space after a couple of thousand (on 32-bit) No. I build

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

2008-03-12 Thread Daniel Child
Each record is allocated and explicitly released at the end of the loop after adding it to the table. I thought autorelease might wait too long to get rid of it, so I do it explicitly. As for Instruments, unfortunately I'm doing this on Tiger. On Mar 12, 2008, at 12:00 PM, [EMAIL PROTECTED]

Re: runtime error

2008-03-12 Thread Daniel Child
the various blocks refer to. (Sorry if that is a newbie question. Performance tools are totally new territory for me.) On Mar 12, 2008, at 1:47 PM, John Stiles wrote: Daniel Child wrote: Each record is allocated and explicitly released at the end of the loop after adding it to the table. I thought

Re: runtime error (- ObjectAlloc)

2008-03-13 Thread Daniel Child
An autorelease pool got me through the parsing operation without issue. Thanks for your input. In ObjectAlloc, is there a way to figure out what exactly how each General Block matches up with objects in code? I can make rough guesses based on the data types and their behavior, but can the

sorting large tables

2008-03-13 Thread Daniel Child
this file using the function I set up and 2) ideas on alternative approaches that will be able to handle much larger files for the future. Thanks! Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: sorting large tables

2008-03-13 Thread Daniel Child
That makes a lot of sense to me, and that's the situation I'm trying to get to. But right now all I have is the original (unsorted) raw data. So I need to load it into memory and sort it. Since the sorting operation hangs some kazillion compare:s into the process, I can't exactly trace my

weak linking of ImageKit framework

2008-03-13 Thread Daniel Dalquen
of property wherever MyDataSource.h is included. Since I don't currently have a Tiger system at hand for testing, I was wondering, whether the app will run on Tiger anyway or whether there is something else I need to do. Thanks, Daniel ___ Cocoa-dev

Re: sorting large tables

2008-03-13 Thread Daniel Child
On Mar 13, 2008, at 6:24 PM, Jens Alfke wrote: You don't necessarily need to sort all of it at once. You just need to find the first few items, to display in your table view. If the user scrolls past those, you need to find more. You can do this by streaming the data from a file, keeping

Re: sorting large tables

2008-03-14 Thread Daniel Child
Actually, since I've parsed the data successfully, I suppose I could store it and reopen in Core Data. Since I am new to Cocoa and have a limited programming background, I thought I should keep things basic,. Will give it a try as well (once I've tried the merge sort). But since I will

Re: Carbon Menu in Cocoa app

2008-03-18 Thread Daniel zeilMal
I have a custom view . And I have drew something on this view . I want to add a custom view to a menuItem . But this is not supported before Leopard .So I'm going to ask help to carbon. The main idea is that I get the menuRef from the [NSApp mainMenu] ,and then draw something on that specific

Re: Carbon Menu in Cocoa app

2008-03-18 Thread Daniel zeilMal
. Must I create the carbon menu in the NIb instead of cocoa menu if I want to get the correct menuRef? 2008/3/18, Kyle Sluder [EMAIL PROTECTED]: On Tue, Mar 18, 2008 at 2:25 PM, Daniel zeilMal [EMAIL PROTECTED] wrote: I have a custom view . And I have drew something on this view . I want

North Carolina Developers

2008-03-19 Thread Jamie Daniel
Any developers in North Carolina? Would like to arrange a cocoa dev group that meets. Thanks, Jamie ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Core Data and NSOperation

2008-03-28 Thread Daniel Thorpe
Hello everyone, I'm a bit of a Core Data newbie, so any thoughts on this would be much appreciated... I have some objects, where each performs calculations, so I've subclassed NSOperation so that I can configure their dependencies and execute them on an NSOperationQueue. I want to store

Re: Core Data and NSOperation

2008-03-28 Thread Daniel Thorpe
Oooh, that might work... But how do you assign independent operations using NSInvocationOperation objects? On 28 Mar 2008, at 19:49, Quincey Morris wrote: On Mar 28, 2008, at 12:09, Daniel Thorpe wrote: I want to store the objects using Core Data, but have come up with a possible

Re: Core Data and NSOperation

2008-03-30 Thread Daniel Thorpe
! Cheers Dan On 29 Mar 2008, at 08:58, Quincey Morris wrote: On Mar 28, 2008, at 22:56, Daniel Thorpe wrote: Oooh, that might work... But how do you assign independent operations using NSInvocationOperation objects? I don't understand the question. Each NSInvocationOperation represents

How to store NSRect as Core Data attribute?

2008-04-02 Thread Daniel Thorpe
Hello everyone, I'm trying to get to grips with non-standard persistent attributes in Core Data. I've read through the docs I can find (http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdNSAttributes.html ) but I'm still having some issues storing an NSRect in an

duplicate symbol error

2008-04-02 Thread Daniel Child
I had an application that built fine on Tiger using Xcode 2.4.1. When I try building on Leopard, I get a duplicate symbol error as follows: ld: duplicate symbol _evLanguageAsString in /Users/.../build/.../Debug/LSC Data Preparation.build/Objects-normal/ ppc/DataDescription.o and

Re: How to store NSRect as Core Data attribute?

2008-04-03 Thread Daniel Thorpe
Thanks for the feedback on this. I have gone with using a ...AsString attribute and using NSRectFromString. Seems to work okay, although I've got no idea if it's the most efficient method. I think Core Data seems a little limited in that you can't store an NSValue object as an attribute,

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

2008-04-03 Thread Daniel Child
evLanguageAsString is a function defined in a file called DataTypes.h. Both DataDescription.h and Step1_SourceTypeController.h import DataTypes.h. I thought #import would take care of the possibility of duplication. Are you suggesting I need to separate the declaration of the function

Re: duplicate symbol error

2008-04-03 Thread Daniel Child
Thanks. Separating the header and implementation solved the linking error, and that should hopefully cure me of the sloppy habit of stuffing functions into a header. I'm not sure the differences between reported errors in Xcode 3 and 2.4 are not worth tracking down, because they are

Re: Open-source NSToolbar?

2008-04-07 Thread Daniel Jalkut
Cocotron is a great place to look for things like this: http://cocotron.googlecode.com/svn/trunk/AppKit/NSToolbar.subproj/ Don't know how well developed the NSToolbar is, but in general they have a lot of cool stuff ported. Daniel On Apr 7, 2008, at 12:47 PM, John Stiles wrote: I'm looking

Re: Method Explanation

2008-04-12 Thread Daniel Staal
some beginning state in some unique way, that isn't the default.) All this is in the Obj-C/Cocoa basics materials on Apple's site. Daniel T. Staal --- This email copyright the author. Unless otherwise noted, you are expressly allowed

Cropping an NSBitmapImageRep to a given NSRect?

2008-04-21 Thread Daniel Thorpe
Hello everyone, I can't seem to get this to work, yet it seems like it should be so easy. I have an NSBitmapImageRep, and I want to crop it to a given NSRect. The code I've attempted so far is this: // Create an NSImage for the current image rep NSImage *source = [[NSImage

Re: Cropping an NSBitmapImageRep to a given NSRect?

2008-04-21 Thread Daniel Thorpe
, at 10:23 pm, Daniel Thorpe wrote: Thanks Graham, I've just tried NSCompositeCopy, still doesn't work, no change... One thing that I've noticed though, is that the source is a grayscale image, but the image that I'm creating is RGB. Should I perhaps be creating a new bitmap image rep

Re: Cropping an NSBitmapImageRep to a given NSRect? [Solved]

2008-04-21 Thread Daniel Thorpe
a bearing on your problem but the simpler the code, the easier to debug :) Having different colourspaces shouldn't matter - the drawing operation will convert the image as necessary. G. On 21 Apr 2008, at 10:23 pm, Daniel Thorpe wrote: Thanks Graham, I've just tried NSCompositeCopy, still

Re: Resource Fork - is this a good use/the right thing to do?

2008-04-23 Thread Daniel DeCovnick
On Apr 23, 2008, at 2:07 AM, Jens Alfke wrote: On 22 Apr '08, at 10:21 PM, Daniel DeCovnick wrote: Through a lot of thought experiments, I've come to the conclusion that the best place to save this sort of thing would be in the resource fork of the file being opened, but I could

Re: [ANN] TransactionKit, Lockless Multi-Reader, Multi-Writer Transaction Capable Hash Tables

2008-04-23 Thread Daniel DeCovnick
On Apr 22, 2008, at 7:48 PM, John Engelhart wrote: snip *applause* ___ 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

Re: Carriage returns and NSXMLParser

2008-04-23 Thread Daniel Staal
to the spec, as far as I can tell. So the behavior seen by the parent is normal, and could well happen with any compliant XML parser. Daniel T. Staal --- This email copyright the author. Unless otherwise noted, you are expressly allowed

Re: Resource Fork - is this a good use/the right thing to do?

2008-04-23 Thread Daniel DeCovnick
That's pretty much option 1, albeit implemented slightly more robustly than I was thinking of. But my data's not sensitive, so there's no advantage in losing it on sending it to someone else, and in fact I'd much prefer it was retained if possible. -Dan On Apr 23, 2008, at 11:10 AM, Jens

Re: Resource Fork - is this a good use/the right thing to do?

2008-04-23 Thread Daniel DeCovnick
That the Resource Manager is still around in 64-bit definitely alleviates one of my concerns - will whatever I use still be around in the future? Thanks much, Dan On Apr 23, 2008, at 10:12 AM, Sean McBride wrote: On 4/23/08 1:21 AM, Daniel DeCovnick said: I'm writing an application

Re: Resource Fork - is this a good use/the right thing to do?

2008-04-23 Thread Daniel DeCovnick
Actually it is possible, at least according to the OSXBook, to add arbitrary key-value paired metadata to a file (IIRC, all MDItem keys share a flat namespace). It theoretically works without Spotlight, but nothing uses metadata that doesn't use Spotlight currently, AFAIK, and my data

Re: Resource Fork - is this a good use/the right thing to do?

2008-04-23 Thread Daniel DeCovnick
You may want to look at the size limits on resource forks, though. I thought I'd blogged about that ages ago, but can't find the posting right now. The resource fork format is documented, though, so it shouldn't be too hard to figure out. There's for example a 2727 resources limit on

Re: Resource Fork - is this a good use/the right thing to do?

2008-04-23 Thread Daniel DeCovnick
The problem with that is, as I wrote in my first message, the real data files aren't mine, and won't be opened by my app exclusively. The data that I need to save ought to be invisible to the file's owner. Imagine, for example, that when working on a file in HexEdit, it allowed you to

Re: Resource Fork - is this a good use/the right thing to do?

2008-04-24 Thread Daniel DeCovnick
Honestly, I don't care how the data is stored, as long as I've got some reliable place to store file-specific data such that it can be reliably tied to the file (cross-user/cross-computer concerns are primary, cross-platform concerns are secondary - I'm only writing this for OS X

Re: Resource Fork - is this a good use/the right thing to do?

2008-04-24 Thread Daniel DeCovnick
into ResEdit PICT resources and then email the plugin to someone on dialup 50 times in penance using a SimpleText copy with the Paste menu item removed. On Apr 24, 2008, at 2:27 AM, Chris Suter wrote: On 24/04/2008, at 4:14 PM, Daniel DeCovnick wrote: Honestly, I don't care how the data

Re: Resource Fork - is this a good use/the right thing to do?

2008-04-24 Thread Daniel DeCovnick
On Apr 24, 2008, at 5:52 AM, Uli Kusterer wrote: Am 24.04.2008 um 09:16 schrieb Daniel DeCovnick: I read that. I'm not sure I completely know what the resource map is. The resource manager keeps track of a table of resource types, and subtables of resource names or ID's as the key in a key

Framework for IB Plugin and app

2008-04-25 Thread Daniel DeCovnick
I've got a framework project, currently set up to create an embedded framework for an application, with a view class that I'd like to turn into an IB Plugin. Can the framework be embedded in the IB Plugin? If so, how? Embedding it like in an app doesn't seem to work: IB doesn't seem to see

[solved]? Re: Framework for IB Plugin and app

2008-04-25 Thread Daniel DeCovnick
Sharp wrote: On Apr 25, 2008, at 2:53 PM, Daniel DeCovnick wrote: I've got a framework project, currently set up to create an embedded framework for an application, with a view class that I'd like to turn into an IB Plugin. Can the framework be embedded in the IB Plugin? If so, how

Re: [solved]? Re: Framework for IB Plugin and app

2008-04-25 Thread Daniel DeCovnick
That was supposed to be struck-through. Oops. -Dan On Apr 25, 2008, at 6:09 PM, Daniel DeCovnick wrote: But you can't then embed the framework in the app, AFAICT. IB gives a plugin corrupted error message when you change the settings in the target to those for an embedded framework

[not solved] Re: Framework for IB Plugin and app

2008-04-25 Thread Daniel DeCovnick
Never mind on that, it still doesn't work. I don't know why it worked one time, but it doesn't now. Suggestions? -Dan On Apr 25, 2008, at 6:43 PM, Daniel DeCovnick wrote: That was supposed to be struck-through. Oops. -Dan On Apr 25, 2008, at 6:09 PM, Daniel DeCovnick wrote: But you can't

app do not enter sign?

2008-04-28 Thread Daniel Child
I am building a sample input method and the build succeeds, but the icon on the executable has a weird circle with bar (like a European do not enter sign) over it. When I try copying it into Library/Input Methods it indeed behaves very slowly...practically useless. I can't figure out what

Re: app do not enter sign?

2008-04-28 Thread Daniel Child
If input methods were not allowed, that would mean no one could type Chinese, Japanese, Korean. I find that hard to believe. The post seems to be about Input Managers, not input methods. On Apr 28, 2008, at 4:52 PM, [EMAIL PROTECTED] wrote: Also, if this is under Leopard, aren't input

Re: app depends on itself (???)

2008-04-28 Thread Daniel Child
Thanks! That took care of it. On Apr 28, 2008, at 11:20 PM, Luke Pike wrote: That error usually means the application is included as part of the target. To fix this, just find the application in the Xcode project and uncheck the target checkbox. Luke On Apr 28, 2008, at 11:10 PM, Daniel

Re: app do not enter sign?

2008-04-28 Thread Daniel Child
It turns out that the exact same configuration WILL build a release version but NOT a debug version. How is that even possible? On Apr 28, 2008, at 4:12 PM, Ricky Sharp wrote: On Apr 28, 2008, at 2:57 PM, Daniel Child wrote: I am building a sample input method and the build succeeds

trouble debugging input method remotely

2008-05-01 Thread Daniel Child
I am trying to set up remote debugging for input methods using Xcode. For starters, I'm trying to use Apple's sample, but am having a number of issues. One is that I am not sure where/how to set up the shared build location in the case of an input method. To run an input method, you need

Re: trouble debugging input method remotely

2008-05-01 Thread Daniel Child
know keyboard input is intended for Xcode or the client application (like TextEdit, which hosts the test). On May 1, 2008, at 1:42 PM, j o a r wrote: On May 1, 2008, at 10:39 AM, Daniel Child wrote: Input methods run in the background and need to be debugged remotely Why? Do you have

Re: trouble debugging input method remotely

2008-05-01 Thread Daniel Child
this was Apple's sample, I'm leaving the SDK/target as is since presumably those are the settings they used??? On May 1, 2008, at 1:42 PM, j o a r wrote: On May 1, 2008, at 10:39 AM, Daniel Child wrote: Input methods run in the background and need to be debugged remotely Why? Do you have

Proxy Window of another

2008-05-03 Thread Daniel Rampanelli
Hi, I was thinking wheter it is possible to create a sort of proxy window which displays the content of another. Of course, the further step would be to also pass events from the proxied window to the source one. Is this even possible? Thanks in advance, Daniel

Crashes with NSOpenPanel and garbage collection

2008-05-08 Thread Daniel Parnell
)insertPanelDidEnd:(NSOpenPanel *)panel returnCode: (int)returnCode contextInfo:(void *)contextInfo { if(returnCode==NSOKButton) { NSLog(@got files=%@, [panel filenames]); } } Daniel ___ Cocoa-dev mailing list (Cocoa-dev

Re: Crashes with NSOpenPanel and garbage collection

2008-05-09 Thread Daniel Parnell
and calling that from the garbage collected app. I don't know if it will work or not, but I might try it and see. Daniel On 09/05/2008, at 3:09 PM, Antonio Nunes wrote: On May 9, 2008, at 3:12 AM, Daniel Parnell wrote: I'm having an interesting problem. I'm trying to use NSOpenPanel to select some

Create NSStrings from a mapped NSData object - safe?

2008-05-13 Thread Daniel Vollmer
the original string and the NSData object are released? Thanks for any pointers, Daniel. ___ 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

basic bindings question

2008-05-14 Thread Daniel Child
to use outlets either. Does this mean you can only use bindings for arrays? Clearly that can't be right If anyone knows of a hyper-simple example dispensing with tables and arrays, I'd really appreciate the link Thanks. Daniel ___ Cocoa

window controller's [self window] not working

2008-05-14 Thread Daniel Child
I have a window controller that I initialize using initWithWindowNibName. To improve readability later in the code, I try to cache the window outlet to another variable. [self window] returns no value, however. This exact same code used to work in previous incarnations of the program,

Re: basic bindings question

2008-05-14 Thread Daniel Child
On May 15, 2008, at 12:09 AM, Ken Thomases wrote: Can you be more specific about why you want your controller to observe its own number property? What are you trying to accomplish? I suspect there's another way to accomplish what you're interested in. I'm simply trying to reduce

Re: window controller's [self window] not working

2008-05-15 Thread Daniel Child
I had already checked the outlets, but rebuilding the nib from scratch fixed the problem. It must have become corrupted somehow. Thanks. On May 15, 2008, at 12:35 AM, Ken Thomases wrote: On May 14, 2008, at 11:23 PM, Daniel Child wrote: I am just getting used to IB3 but don't see what or how

Re: basic bindings question

2008-05-15 Thread Daniel Child
You were right, it accidentally switched to user defaults. Removing that and setting it back to controller still leads to a runtime exception. 2008-05-15 22:30:53.718 StringBinding[290:10b] An uncaught exception was raised 2008-05-15 22:30:53.719 StringBinding[290:10b] [NSApplication

bindings tutorial doesn't work

2008-05-19 Thread Daniel Child
(double) (dollarsToConvert * exchangeRate) @end I have no idea what this error means and found no helpful references on the web. If someone could shed some light on this issue I'd really appreciate it. Thanks. Daniel ___ Cocoa-dev mailing list (Cocoa-dev

Re: bindings tutorial doesn't work

2008-05-20 Thread Daniel Child
THANK YOU! On May 20, 2008, at 9:33 AM, Michael Babin wrote: On May 19, 2008, at 11:41 PM, Daniel Child wrote: After reading a host of theoretical explanations on bindings, I tried the bindings-based currency converter tutorial to try to get some basic feel for bindings in practice

NSScrollView, NSCollectionView and zooming / resizing to the center

2008-05-20 Thread Daniel Vollmer
to stay the same. Any ideas? Thanks, Daniel. ___ 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.com Help

Fighting NSCollectionView for first Responder

2008-05-22 Thread Daniel Vollmer
way of handling things? Thanks, Daniel. ___ 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.com Help/Unsubscribe

Re: IB outlets and NSCollectionViews

2008-05-25 Thread Daniel Vollmer
withKeyPath:@selected options:nil]; } This only binds the prototype view, but the bindings are properly set to the instantiated object by the obscure NSView-copying via NSCoder shenanigans (as described on cocoadev). Daniel. ___ Cocoa-dev

Re: NSCollectionView problems

2008-05-25 Thread Daniel Vollmer
of the NSCollectionView x-axis. —Jens Thanks, Daniel. ___ 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.com Help

How does NSWorkspace -isFilePackageAtPath: work?

2008-06-02 Thread Daniel Dalquen
whether the file at the path is a bundle or not? Does it just look at the directory structure only or does it read some files? Is there a way to find out? Thanks, Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

totally confused by bindings settings

2008-06-03 Thread Daniel Child
I worked out a super basic bindings case where table columns display the ivars of a Word class via bindings. Words have three ivars with standard accessors. An ArrayController manages a table of these words, with appropriate bindings between the columns and ivars. It works as expected. So

Re: totally confused by bindings

2008-06-05 Thread Daniel Child
First off, thanks very much for the lengthy response. My initial response to your post was rejected for length, so I am trying to abbreviate here, pinpointing areas of confusion. Hmm. An NSArrayController doesn't manage tables, it manages an array (as its name implies). So, do you have

Re: totally confused by bindings settings

2008-06-08 Thread Daniel Child
You could also establish the bindings through File's Owner.delegate.whatever key path. It amounts to the same thing for this nib. In other nibs, the application delegate won't actually be in that same nib, and so the ability to refer to it via a key path from either the File's Owner or

NSTreeController's arrangedObjects returning _NSControllerTreeProxy for KVC path?

2008-06-11 Thread Daniel Price
This is driving me absolutely nuts. As a test, I have an NSTreeController and an NSOutlineView within the same nib of a CoreData application (Leopard). If I bind the columns of the outline view to the controller directly within IB, it works as expected. eg: ShapeTC-arrangedObjects.name

Re: Troubles with CollectionView and IKImageBrowserView

2008-06-12 Thread Daniel Vollmer
known long enough for 1094954 other bugs to be filled..). HTH, Daniel.___ 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

Valid contentObject for NSTreeController (Core Data)

2008-06-14 Thread Daniel Price
Can someone point out the correct method of providing a valid datasource object for the contentObject binding of a NSTreeController in a Core Data document app? I've added an NSManagedObject instance variable to my document subclass (and added an accessor) and bound the controller in a nib

objects aren't added to NSMutableArray

2008-06-17 Thread Daniel Richman
/tmp/NSMutableArray_Problem.tar.gz . Thanks! Daniel ___ 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.com Help/Unsubscribe

getting the selected object from an NSTableView causes problems

2008-06-20 Thread Daniel Richman
ideas? My project is online at http://danielrichman.com/tmp/DataSourceChallence_ToDoList.zip . Thanks, --Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: getting the selected object from an NSTableView causes problems

2008-06-21 Thread Daniel Richman
/ToDoList_Problem.mov . Thanks, Daniel Graham Cox wrote: I ran into a very similar problem just today. There is an error in your code though, unrelated to my problem, but is probably yours: int selectedRow = [((NSNumber *)[tableView selectedRow]) intValue]; -selectedRow simply returns an int, so all

Re: getting the selected object from an NSTableView causes problems

2008-06-21 Thread Daniel Richman
That's it! Thanks! Daniel Charles Srstka wrote: Don't do this: NSLog(@selected row: %@, [tableView selectedRow]); Instead, do this: NSLog(@selected row: %u, [tableView selectedRow]); Trying to interpret an int as an object is what's causing your crash. Charles On Jun 21, 2008, at 10:13

Re: getting the selected object from an NSTableView causes problems

2008-06-21 Thread Daniel Richman
Ah. So the typedef changes depending on the platform. Interesting, thanks. Nick Zitzmann wrote: On Jun 21, 2008, at 9:13 AM, Daniel Richman wrote: Thanks! I don't know why they introduced NSInteger. It sounds like it would be a subclass of NSNumber. They did that so that NSData, etc

strikethrough in text displayed

2008-06-21 Thread Daniel Richman
? Thanks, Daniel ___ 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.com Help/Unsubscribe/Update your Subscription: http

Re: Wherefore art thou, o NSTableView?

2008-06-22 Thread Daniel Richman
with the data. Daniel William Squires wrote: Okay, this one has me stumped. What delegate do I need to implement to handle user editing a cell in an NSTableView (i.e. after they edit it, and hit the Enter key to accept.) None of the delegate methods described in the docs seem to fit the bill

Re: weird bug or feature?

2008-06-22 Thread Daniel Richman
Can you post your code for your main class? I've been doing the same thing and haven't had anything like that. Daniel William Squires wrote: Okay, here's a strange UI glitch. I have an Xcode project in which I have a to-do list (the challenge in Chapter 6 of the new Hillegaas book). I've

Re: A documentation dumdum

2008-06-22 Thread Daniel Richman
); [toDoList replaceObjectAtIndex:rowIndex withObject:anObject]; } Don't worry about giving it to the table view as an NSString. It can take any type of object fine. Don't type cast it. Daniel William Squires wrote: okay, looking up tableView:setObjectValue:forTableColumn:row shows

Re: How to manage/embed Covert Art from Mp3 Files with Cocoa App?

2008-06-23 Thread Daniel Thorpe
Hello everyone, I raised this problem on the list in May, although I was unable to follow up in timely fashion. I've since had time to look at it again, and I see some more people have asked about adding artwork to iTunes. As Jens suggests, an ID3 framework

NSDateFormatter -- accepting different formats at runtime

2008-06-23 Thread Daniel Richman
? Thanks, Daniel ___ 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.com Help/Unsubscribe/Update your Subscription: http

Re: NIB Help

2008-06-23 Thread Daniel Richman
What do you mean, loading a NIB? Do you mean in Interface Builder, or at runtime? Daniel J. Todd Slack wrote: Hi All, Are there any examples of loading a NIB, accessing a tab view in a window of the NIB I just loaded? I was trying to accomplish via AppleScript originally, but nothing

Re: simple question about passing around pointers to objects

2008-06-27 Thread Daniel Richman
Here is a simple example: -(NSArray*) makeObject { NSArray *a = [NSArray arrayFromObjects];someObject, anotherObject, nil]; This should be NSArray *a = [NSArray arrayFromObjects:someObject, anotherObject]; // should I [a retain]; I would use [a retain]; // or [a release];

while loop with sleep(): logging works, but not UI events

2008-06-27 Thread Daniel Richman
any other UI events from occurring. This would also explain why I'm able to log a message each time the loop iterates. But I'm still not sure why the button is staying pressed. Thoughts, anyone? Daniel ___ Cocoa-dev mailing list (Cocoa-dev

Re: while loop with sleep(): logging works, but not UI events

2008-06-28 Thread Daniel Richman
--; } } Thanks again to all. Daniel Ken Thomases wrote: On Jun 27, 2008, at 10:55 PM, Daniel Richman wrote: I'm trying to program a simple timer app: you enter a number of seconds, and it updates a text field every second with the number of secs remaining. The problem is that I'm not able to do

  1   2   3   4   5   6   7   8   9   10   >