Re: Should I learn CoreData for this project?

2009-11-03 Thread Kai Brüning
Hi David, this question is most definitely on topic :-) So, lets see, what would Core Data give you: - Scalability, fast incremental loads and saves for big data sets. I don’t think you’ll need this. Loading and saving 500 items each time will be fast enough. - A data model modeler. That’s

Re: [solved] NSManagedObject and weak references under GC

2009-11-03 Thread Rob Keniger
On 04/11/2009, at 3:41 PM, Rob Keniger wrote: However, now that I've switched the document to be a subclass of NSPersistentDocument, I am getting compilation errors in my NSViewController subclass when it tries to access the foo property of the document: document.foo = @"bar"; -> error:

NSManagedObject and weak references under GC

2009-11-03 Thread Rob Keniger
Hi all, I'm converting my garbage-collected document-based application to use Core Data. In my existing implementation, several NSViewControllers keep weak references to the NSDocument object by using the __weak attribute: @interface MyController : NSViewController __weak MyDocume

Preventing NSDocument's "The document has been moved" alert

2009-11-03 Thread Andrew Madsen
I've got an NS(Persistent)Document based application that has the ability to import files saved in a standard (non CoreData) interchange file format. I do this by overriding readFromURL:ofType:error:, checking to see if the file to be opened is the format that has to be imported, then doin

Should I learn CoreData for this project?

2009-11-03 Thread David Hirsch
So, I'm hearing folks sing the praises of CoreData, which I have not yet learned. It seems like a long uphill climb, but if life will be spectacular afterwards, I'll do it. I am a semi-casual programmer; I've just finished a couple of small programs that do not use CoreData, and I can see

Re: Programming hot key

2009-11-03 Thread Eric Schlegel
On Nov 3, 2009, at 6:10 PM, Symadept wrote: > Hi, > > Anybody tell me can I program a hot key which shall not block the other apps > responding to it. > > Lets say I have registered hot key Command+P for some operation for my app, > it shall not block the other apps responding to it. You shoul

Re: NSMatrix -renewRows:columns: doesn't change cell count

2009-11-03 Thread Matt Neuburg
On Mon, 02 Nov 2009 19:28:28 -0800, Matt Neuburg said: >If I say: > >[myMatrix renewRows:5 columns:5]; > >and then later: > >[myMatrix renewRows:3 columns:3]; >int i = [[myMatrix cells] count]; // i is 25 > >Is this a bug? Well, I have submitted it as one to Apple. We shall see what we shall see.

Re: Core Data design question: receiving KVO notifications of partially mutated objects

2009-11-03 Thread Sean McBride
On 11/2/09 12:58 PM, Ben Trumbull said: >This doesn't really have anything to do with Core Data. However, for >NSManagedObject, Core Data already provides the change coalescing and >NSNotifications for you. You can respond within >NSManagedObjectContextObjectsDidChangeNotification instead. So I

Re: NSDate / NSXMLParser

2009-11-03 Thread Nick Zitzmann
On Nov 3, 2009, at 1:15 PM, David Rowland wrote: It still gets the hours right but tags the time zone as -0800 (Pacific). If you're basing that off of the description of the NSDate, then of course it does; NSDate objects have no knowledge of time zones, so the description shows the date

Re: NSDate / NSXMLParser

2009-11-03 Thread David Rowland
On Nov 3, 2009, at 10:04 AM, Chunk 1978 wrote: have you tried it on your device? Yes. The device and the Simulator behave the same way. On Tue, Nov 3, 2009 at 11:26 AM, David Rowland wrote: The SeismicXML sample code uses NSXMLParser to extract data from a file downloaded from the US

Re: menu action never being called?

2009-11-03 Thread Kyle Sluder
On Nov 3, 2009, at 5:56 PM, "David M. Cotter" wrote: really i realize the design is not optimal but it can not be changed at this time. i need to make it work the way it is. please use that as the starting assumption. (telling someone to change their design more frustrating than actuall

Re: NSDate / NSXMLParser

2009-11-03 Thread Kyle Sluder
On Tue, Nov 3, 2009 at 12:56 PM, David Rowland wrote: > But NSDate does have a knowledge of time zones. The reason I am doing this > it to do some arithmetic on the dates - like this, No, it does not. NSDate refers to a point in time ("seven seconds after the big bang"), not to how anyone might

Re: menu action never being called?

2009-11-03 Thread Graham Cox
On 04/11/2009, at 12:56 PM, David M. Cotter wrote: really i realize the design is not optimal but it can not be changed at this time. i need to make it work the way it is. please use that as the starting assumption. (telling someone to change their design more frustrating than actually

Re: menu action never being called?

2009-11-03 Thread Kiel Gillard
On 04/11/2009, at 12:25 PM, David M. Cotter wrote: i have a menu that lives in the menu bar (top level) but i also use it in a context menu This is the source of your problem. Your design is working against you. I would suggest using one instance of NSMenu for the main menu and another in

Re: UIView animation docs question

2009-11-03 Thread Fritz Anderson
On 3 Nov 2009, at 3:29 PM, lorenzo7...@gmail.com wrote: The documentation for setAnimationDidStopSelector in the XCode 3.2.1: says this: "...The message sent to the animation delegate after animations end. The default value is NULL. The selector should be of the form: - (void)animationDid

Re: Re: UIView animation docs question

2009-11-03 Thread lorenzo7620
On Nov 3, 2009 5:08pm, Klaus Backert wrote: On 3 Nov 2009, at 23:23, lorenzo7...@gmail.com wrote: Here's the code: [UIView beginAnimations:@"display" context:NULL]; [UIView setAnimationDuration:0.30]; [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelector:

Re: How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...

2009-11-03 Thread Steve Christensen
Oleg, had you thought of doing something like adding -isSelectionValid and -setSelectionValid: methods to your controller class? The view would always keep track of the mouse state, tell the controller what the current selection is when the mouse moves, but won't update itself or respond to

UIView animation docs question

2009-11-03 Thread lorenzo7620
The documentation for setAnimationDidStopSelector in the XCode 3.2.1: says this: "...The message sent to the animation delegate after animations end. The default value is NULL. The selector should be of the form: - (void)animationDidStop:(NSString *)animationID finished:(NSNumber *)finish

Re: Handling calculations with many decimal places

2009-11-03 Thread Ian Piper
On 3 Nov 2009, at 21:22, Greg Guerin wrote: Ian Piper wrote: I want to be able to display potentially a large number of decimal places in the result (hundreds at least). Explanation and many links to libs: http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic Any lib written in C or

Re: Handling calculations with many decimal places

2009-11-03 Thread Greg Guerin
Ian Piper wrote: I want to be able to display potentially a large number of decimal places in the result (hundreds at least). Explanation and many links to libs: http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic Any lib written in C or with C bindings would work in Objective-C.

Re: Help debugging "Dangling reference to an invalid object." Core Data error

2009-11-03 Thread Sean McBride
On 11/2/09 1:38 PM, Ben Trumbull said: >>> The only caveat is you cannot change relationships from within - >>> awakeFromFetch. This is documented: >> >> This is something I know and avoid, but it turns out this is what's >> happening afterall! Thanks! >> >> Is there some way to catch such viola

Re: NSDate / NSXMLParser

2009-11-03 Thread David Rowland
Thanks to all for this useful discussion. I think I have solved my problem by taking the data from the parser as is and then applying a correction for my offset from GMT when I do my arithmetic. Like this, int offset = [[NSTimeZone localTimeZone] secondsFromGMT]; NSDate *today = [NSDate d

Re: NSDate / NSXMLParser

2009-11-03 Thread Nick Zitzmann
On Nov 3, 2009, at 1:56 PM, David Rowland wrote: In this code "today" gets created correctly. The display shows current Pacific hours and an offset of -0800. Of course it does. NSDate objects are always displayed as if they were in your local time zone; it just prints the time zone in the

Re: Bulletproof way to create a new CGBitmapContext from an existing image?

2009-11-03 Thread Steve Christensen
Why not alway create a CGBitmapContext of the desired size and in a supported pixel format (see ), then call CGContextDrawImage to draw the CGImage into the context? Then you're always controlling the parameters. CGRect bounds =

Re: Looking for guidance re: password/credential storage and Core Data

2009-11-03 Thread Kyle Sluder
On Tue, Nov 3, 2009 at 12:14 PM, Wim Lewis wrote: > It's possible to get a persistent reference to a keychain item (a CFData > blob) using SecKeychainItemCreatePersistentReference() or > SecItemCopyMatching(kSecReturnPersistentRef=YES, ...). So you could store > that in Core Data and convert it ba

Maryland (USA) Cocoaheads - Re: [MEET] November CocoaHeads Mac Developer Meetings

2009-11-03 Thread Lyndsey Ferguson
For those of you near Columbia, Maryland, please don't forget that we meet this November 10th! http://cocoaheads.org/us/ColumbiaMaryland/index.html On Oct 29, 2009, at 8:15 PM, Stephen Zyszkiewicz wrote: Greetings, CocoaHeads is an international Mac programmer's group. Meetings are fre

Programming hot key

2009-11-03 Thread Symadept
Hi, Anybody tell me can I program a hot key which shall not block the other apps responding to it. Lets say I have registered hot key Command+P for some operation for my app, it shall not block the other apps responding to it. How can I do this? Regards Symadept

Re: NSDate / NSXMLParser

2009-11-03 Thread David Rowland
On Nov 3, 2009, at 12:19 PM, Nick Zitzmann wrote: On Nov 3, 2009, at 1:15 PM, David Rowland wrote: It still gets the hours right but tags the time zone as -0800 (Pacific). If you're basing that off of the description of the NSDate, then of course it does; NSDate objects have no knowledg

Re: Looking for guidance re: password/credential storage and Core Data

2009-11-03 Thread Wim Lewis
On Nov 3, 2009, at 4:51 AM, David HM Spector wrote: Is there a pattern commonly followed regarding storage of passwords or other credential type data in core data..? Given the existence and security profile of the KeyChain, it would clearly be best to keep passwords there, but can I map t

Re: NSDate / NSXMLParser

2009-11-03 Thread David Rowland
On Nov 3, 2009, at 10:37 AM, Nick Zitzmann wrote: On Nov 3, 2009, at 9:26 AM, David Rowland wrote: No doubt my inexperience with the parser or NSDate is at fault. How do I get the parser to recognize that the time really is UTC? If you're using NSDateFormatter, you set the time zone by se

Re: Re: UIView animation docs question

2009-11-03 Thread lorenzo7620
On Nov 3, 2009 3:44pm, Fritz Anderson wrote: On 3 Nov 2009, at 3:29 PM, lorenzo7...@gmail.com wrote: The documentation for setAnimationDidStopSelector in the XCode 3.2.1: says this: "...The message sent to the animation delegate after animations end. The default value is NULL. The s

Re: NSCollectionView and drag tolerance

2009-11-03 Thread Rich Dearlove
Thanks for pointing that out, I thought my code wasn't working. Its very unintuitive. Perhaps we should file a bug/enhancement. RD On 3 Nov 2009, at 11:36, Raphael Sebbe wrote: I have the same problem: holding mouse down to initiate a drag is not intuitive. I guess that when multiple selec

Re: Strange behaviour with NSTableView binded to NSArrayController with NSSet as content

2009-11-03 Thread Quincey Morris
On Nov 3, 2009, at 03:18, Christian Ziegler wrote: Are you suggesting I should use an NSMutableArray as content instead of NSMutableSet? You can't switch. Without a managed object context, a NSArrayController's content must be provided by a NSArray, and with a managed object context, a NS

Re: NSDate / NSXMLParser

2009-11-03 Thread Nick Zitzmann
On Nov 3, 2009, at 9:26 AM, David Rowland wrote: No doubt my inexperience with the parser or NSDate is at fault. How do I get the parser to recognize that the time really is UTC? If you're using NSDateFormatter, you set the time zone by setting the formatter's calendar with an NSCalendar w

Re : Handling calculations with many decimal places

2009-11-03 Thread Peter Hudson
You may find using binary coded decimal is a useful. If you google for binary coded decimal library for osx you get a number of libraries. I thought this one was interesting. http://mac.softpedia.com/get/Development/Libraries/libpbcd.shtml Peter __

hdiutil unmount does not unmount volumes completely

2009-11-03 Thread MZ
Hi, I use NSTask to call hdiutil to programmatically unmount the mounted volumes that were mounted by "hdiutil mount" and the volumes can be successfully unmounted from the currently logged in user's Desktop. However, if I log out and log in as another system user, the volumes that were mounted wi

Re: Apple Remote Control Wrapper sends same button ID for all buttons.

2009-11-03 Thread Sean McBride
On 11/1/09 11:54 PM, Harry Vangberg said: >I am trying to use the Apple Remote Control Wrapper by Martin Kahr. I made a >simple implementation per the website, which just logs mouse events: > > *SNIP* > >Which makes it a tad difficult to differ between them. This is developing >against 10.6. If y

NSDate / NSXMLParser

2009-11-03 Thread David Rowland
The SeismicXML sample code uses NSXMLParser to extract data from a file downloaded from the USGS. The time of an event appears in the file like this, .12:34:32Z According to rfc 822 'Z' means UTC (or GMT if you prefer). I find that the NSDate from the parser is tagged as being in the

Looking for guidance re: password/credential storage and Core Data

2009-11-03 Thread David HM Spector
Hi, Couldn't find anything relevant in the the docs or the lists, so I thought I'd ask here.. Is there a pattern commonly followed regarding storage of passwords or other credential type data in core data..? Given the existence and security profile of the KeyChain, it would clearly be b

menu action never being called?

2009-11-03 Thread David M. Cotter
i have a menu that lives in the menu bar (top level) but i also use it in a context menu when the context menu is about to be shown, i take the menu out of the menu bar (substituting an empty menu by the same name so the menu bar doesn't flicker with the menu suddenly missing) and stick it i

Re: menu action never being called?

2009-11-03 Thread David M. Cotter
really i realize the design is not optimal but it can not be changed at this time. i need to make it work the way it is. please use that as the starting assumption. (telling someone to change their design more frustrating than actually helpful) if you care, the menu in the menu bar has 3

Re: Handling calculations with many decimal places

2009-11-03 Thread Quincey Morris
On Nov 3, 2009, at 06:18, Ian Piper wrote: I am writing an implementation of the Brent-Salamin algorithm for calculating pi. I want to be able to display potentially a large number of decimal places in the result (hundreds at least). However I am finding that even using long double values i

Re: NSDate / NSXMLParser

2009-11-03 Thread Chunk 1978
have you tried it on your device? On Tue, Nov 3, 2009 at 11:26 AM, David Rowland wrote: > The SeismicXML sample code uses NSXMLParser to extract data from a file > downloaded from the USGS. The time of an event appears in the file like > this, > .12:34:32Z > > According to rfc 822 'Z' mea

Re: UIView animation docs question

2009-11-03 Thread Klaus Backert
On 3 Nov 2009, at 23:23, lorenzo7...@gmail.com wrote: Here's the code: [UIView beginAnimations:@"display" context:NULL]; [UIView setAnimationDuration:0.30]; [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelector :@selector(animationDidStop:finshed:context:)]; Really "fins

Re: menu action never being called?

2009-11-03 Thread Graham Cox
On 04/11/2009, at 12:25 PM, David M. Cotter wrote: i have a menu that lives in the menu bar (top level) but i also use it in a context menu when the context menu is about to be shown, i take the menu out of the menu bar (substituting an empty menu by the same name so the menu bar doesn't

Re: Overriding -[UIViewController loadView], and loading from a nib

2009-11-03 Thread Luke the Hiesterman
Well, if your viewController is loading from a nib without you calling loadNibNamed: somewhere, then that means you did it in IB. That is, in one of your other nibs, you have a view controller outlet that's set to load from a specified nib. You can not put a nib to load from and simply do t

Re: Overriding -[UIViewController loadView], and loading from a nib

2009-11-03 Thread Jonathan del Strother
Sorry - I'm not following. What did you mean by hooking up IB to auto-load the nib? 2009/11/3 Luke the Hiesterman : > You should pick one place or the other to do your nib loading. If you choose > to do it yourself, then don't hook up IB to automatically load the view > controller's nib. Then you

NSTreeController insert crashes under 10.5 and not 10.6 with -[NSKeyValueFastMutableArray2 count]: value for key children of object is nil

2009-11-03 Thread Lee Gillen
I have a strange crash in 10.5 that doesn't crash in 10.6. My app has a NSTreeController that is bound to an XML document. I am using the "Tree-Based XML Programming Guide for Cocoa: Using Tree Controllers with NSXML Objects" as a guideline. http://developer.apple.com/mac/library/documentation/Coc

Re: Bulletproof way to create a new CGBitmapContext from an existing image?

2009-11-03 Thread David Duncan
On Nov 1, 2009, at 8:45 AM, thatsanicehatyouh...@mac.com wrote: I'm trying to write code to avoid messages such as this: : CGBitmapContextCreate: unsupported parameter combination: 8 integer bits/component; 16 bits/pixel; 1-component colorspace; kCGImageAlphaPremultipliedFirst; 352 bytes/ro

Re: How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...

2009-11-03 Thread Uli Kusterer
On 03.11.2009, at 14:56, Graham Cox wrote: In other words, instead of faking a mouse event in order to get the mouse position into that code, just factor that part out and give it the mouse position at the end. You can get that using - mouseLocationOutsideOfEventStream. Converting it to local

priming the NSBeep pump?

2009-11-03 Thread Matt Neuburg
My app sometimes needs to beep to signal the user that something is a no-no. The very *first* NSBeep() call issued after startup sometimes takes quite a long time to make sound emerge from the computer - long enough that the user feels that something has gone wrong (because nothing is happening, ne

Re: Commandline Tool Help - NSDistantObject and NSConnection

2009-11-03 Thread Adam R. Maxwell
On Nov 2, 2009, at 10:04 PM, Jens Alfke wrote: > This misfeature has confused a lot of people over the years, including me. My > solution, once I found out what was going on, was to never send NSURLs over > DO — I converted them to NSStrings on the sending side and back to NSURLs on > the rece

Re: Odd behavior of [NSDateFormatter dateFromString] with short years?

2009-11-03 Thread Hank Heijink (Mailinglists)
On Nov 3, 2009, at 10:06 AM, marc hoffman wrote: Hi, im running into some very odd behavior when using a ShortStyle date formatter for entering dates, and using single vs double digit year numbers. typing the year as either "2009" or "09" works as expected, but typing it as "9" not only

Odd behavior of [NSDateFormatter dateFromString] with short years?

2009-11-03 Thread marc hoffman
Hi, im running into some very odd behavior when using a ShortStyle date formatter for entering dates, and using single vs double digit year numbers. typing the year as either "2009" or "09" works as expected, but typing it as "9" not only does *not adjust the century, but also produces wh

Re: Handling calculations with many decimal places

2009-11-03 Thread Graham Cox
On 04/11/2009, at 1:29 AM, Graham Cox wrote: NSDecimal may help, but it's also of finite size, so it won't help trying to print out the digits of pi to arbitrary precision, since pi is infinitely long. Algorithms to print the digits of pi usually emit the digits one at a time, so they are n

Re: Overriding -[UIViewController loadView], and loading from a nib

2009-11-03 Thread Luke the Hiesterman
You should pick one place or the other to do your nib loading. If you choose to do it yourself, then don't hook up IB to automatically load the view controller's nib. Then you can safely call [super loadview] followed by your own code which includes loading the view from the nib. Alternativ

Re: Handling calculations with many decimal places

2009-11-03 Thread Graham Cox
On 04/11/2009, at 1:18 AM, Ian Piper wrote: I am writing an implementation of the Brent-Salamin algorithm for calculating pi. I want to be able to display potentially a large number of decimal places in the result (hundreds at least). However I am finding that even using long double values

Handling calculations with many decimal places

2009-11-03 Thread Ian Piper
Hi, I am writing an implementation of the Brent-Salamin algorithm for calculating pi. I want to be able to display potentially a large number of decimal places in the result (hundreds at least). However I am finding that even using long double values in my calculation gives me only the fi

Re: How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...

2009-11-03 Thread Graham Cox
On 04/11/2009, at 12:46 AM, Oleg Krupnov wrote: 1. in controller, determine which view the mouse currently is over (hit test the window) 2. localize the coordinate to that view and ask the view to hit test its items for the coordinate 3. set the controller's selection to that item This all, an

Re: How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...

2009-11-03 Thread Oleg Krupnov
Graham, I really appreciate you taking your time to write such detailed posts for me, but what I am trying to say is that I am doing everything exactly as you suggest, following the best design patterns (I think). There is a controller and it maintains the selection. The view only draws the selecti

Re: Overriding -[UIViewController loadView], and loading from a nib

2009-11-03 Thread Jonathan del Strother
2009/11/3 Jonathan del Strother : > Heya, > > I'd like to get hold of the top level objects returned by -[NSBundle > loadNibNamed:owner:options:] when UIViewController loads my view. > Sadly UIViewController doesn't seem to provide any way of accessing > these, so I thought I might be able to just

Re: How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...

2009-11-03 Thread Graham Cox
On 03/11/2009, at 11:15 PM, Oleg Krupnov wrote: Maybe I'm not speaking clearly, but that's exactly what I'm trying to do -- use a mouse event to cause a state change, but in this case the mouse event would be fake. Mouse position is in no way part of the view's state. I just want that at partic

Re: How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...

2009-11-03 Thread Oleg Krupnov
Dave, I already tried CGEventPost() but it does not seem to work either -- just nothing happens. I'd appreciate an example of working code, I haven't been able to find any. I also tried CGPostMouseEvent(). This works, but in a weird way -- it actually moves the mouse cursor (kind of a too low-leve

Overriding -[UIViewController loadView], and loading from a nib

2009-11-03 Thread Jonathan del Strother
Heya, I'd like to get hold of the top level objects returned by -[NSBundle loadNibNamed:owner:options:] when UIViewController loads my view. Sadly UIViewController doesn't seem to provide any way of accessing these, so I thought I might be able to just load the nib myself : -(void)loadView {

Re: How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...

2009-11-03 Thread Dave Keck
Untested suggestion: when a real mouse moved event occurs, NSLog it and duplicate its arguments exactly. Perhaps the '0' arguments are why it's not working. If that doesn't do the trick, you'll probably have to drop to a lower level, such as CGEventPost(). ... but Graham's right - there's probabl

Re: How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...

2009-11-03 Thread Oleg Krupnov
Graham, Maybe I'm not speaking clearly, but that's exactly what I'm trying to do -- use a mouse event to cause a state change, but in this case the mouse event would be fake. Mouse position is in no way part of the view's state. I just want that at particular moment the view's state becomes synchr

Re: How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...

2009-11-03 Thread Graham Cox
On 03/11/2009, at 10:39 PM, Oleg Krupnov wrote: There are basically two or three custom views of different class in the window that need refresh. These views are totally custom, which means I could of course implement the corresponding methods that would explicitly refresh their state, but beca

Re: How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...

2009-11-03 Thread Oleg Krupnov
Thanks Graham, There are basically two or three custom views of different class in the window that need refresh. These views are totally custom, which means I could of course implement the corresponding methods that would explicitly refresh their state, but because the state depends on the mouse p

Re: NSCollectionView and drag tolerance

2009-11-03 Thread Raphael Sebbe
I have the same problem: holding mouse down to initiate a drag is not intuitive. I guess that when multiple selection is disabled, the collection view should initiate the drag immediately instead of tracking. Raphael On Sun, Nov 1, 2009 at 11:42 PM, Harry Vangberg wrote: > Hello > > I have a NS

Re: Strange behaviour with NSTableView binded to NSArrayController with NSSet as content

2009-11-03 Thread Christian Ziegler
On 28.10.2009, at 05:29, Kyle Sluder wrote: On Tue, Oct 27, 2009 at 11:27 AM, Christian Ziegler wrote: I got an NSTableView binded to an NSArrayController (Values, Sort Descriptors, Selection), which itself is binded to a class' NSMutableSet via the ContentSet binding. The NSTableView is f

Re: Linking Back to My CSS File.

2009-11-03 Thread Mike Abdullah
This has very little to do with Cocoa and so you're probably on the wrong list. /rbi8.css specifies a CSS file located in the root directory which is not what you want. Read up on how paths/URLs work with HTML. You want something more like ../rbi8.css On 3 Nov 2009, at 09:31, Philip Juel Bo

Re: How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...

2009-11-03 Thread Graham Cox
On 03/11/2009, at 8:48 PM, Oleg Krupnov wrote: As I said, I am trying to refresh the state of the view after a lengthy operation is complete. No disrespect, but you did not say that - this is the first mention of a "lengthy operation". How lengthy? What is it?. Not sure why the coyness bu

Re: How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...

2009-11-03 Thread Oleg Krupnov
As I said, I am trying to refresh the state of the view after a lengthy operation is complete. By "state" I mean that the item in the view on which the mouse is hovered, should highlight. Also, if I don't refresh, the view will not respond to the following mouse down event, unless it is preceded wi

Re: How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...

2009-11-03 Thread Graham Cox
On 03/11/2009, at 8:03 PM, Oleg Krupnov wrote: I'd like to imitate a mouse move event programmaticaly, to refresh the state of my custom view. [] What am I doing wrong? Thanks! The answer is: you're trying to post a mouse event to refresh the state of your custom view. There has to b

Linking Back to My CSS File.

2009-11-03 Thread Philip Juel Borges
Hi! I'm new to iPhone development. But loving it! In my project I have added folders to the resource folder. The structure looks like this. TOC.html rbi8.css data I I--ge I--1.html I--2.html I--3.html Now, all my html files use css for styling. As you can s

Re: Unable to disassemble objc_assign_strongCast

2009-11-03 Thread Quincey Morris
On Nov 2, 2009, at 22:18, Kyle Sluder wrote: On Mon, Nov 2, 2009 at 10:06 PM, Roland King wrote: Haven't there been several threads recently telling people *never* to use the if( saveError ) check because saveError may be set even if the method succeeds. You can use it to determine if th

Re: Apple Remote Control Wrapper sends same button ID for all buttons.

2009-11-03 Thread Uli Kusterer
On 01.11.2009, at 23:54, Harry Vangberg wrote: I am trying to use the Apple Remote Control Wrapper by Martin Kahr. I made a simple implementation per the website, which just logs mouse events: Try using the HIDRemote class from the IOSpirit guys. It's much newer code and contains lots of fi

How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...

2009-11-03 Thread Oleg Krupnov
Hi, I'd like to imitate a mouse move event programmaticaly, to refresh the state of my custom view. What is the best way to do it? I am trying to use [NSApp postEvent:atStart:] and [window postEvent:atStart:], but nothing happens, the event is not fired, and the view does not receive it. Here i