Re: newbie question -views and MCV model

2010-01-15 Thread Alexander Spohr
Am 15.01.2010 um 05:57 schrieb Martin Beroiz: > My problem is with the controller. I subclassed NSViewController (with the > name FilterBankViewController) and tried to bind the class with the file's > owner. But I noticed that in IB I cannot do that, actually the bind tab says > it's "Not App

Re: Core Video CIFilters/ playback / compression suggestions?

2010-01-15 Thread Jean-Daniel Dupas
Le 14 janv. 2010 à 20:11, Travis Kirton a écrit : > Hi, > > We're working with Core Video to play back videos @ 1024 x 768 resolution. > The videos are stacked on top of one another and revealed as a user draws > over top of them. To achieve this "drawing into" the stack of videos, we're > fil

Re: iPhone: UITableView with cells of varying heights

2010-01-15 Thread Brian Bruinewoud
Be sure to still have a maximum height for each row. Some RSS feeds (eg. BetaNews.com) contain the entire article rather than just text. Also, some feeds contain images (eg. Online comics and the entire cheese burger network stuff). On 15/01/2010, at 05:16 , Eric E. Dolecki wrote: > Sure thin

Re: NSWeekCalendarUnit and DIN 1355 / ISO 8601

2010-01-15 Thread Alexander Spohr
Filed a bug, Problem ID: 7545433 Am 13.01.2010 um 14:11 schrieb Alexander Spohr: > Hi list, > > I just fell over NSWeekCalendarUnit. It delivers the week of a date. > Sadly it seems to do so only for the US but not for e.g. Germany and all ISO > 8601 countries (most of europe) - except UK. >

Re: Time to drop PowerPC support?

2010-01-15 Thread Kyle Sluder
On Thu, Jan 14, 2010 at 9:19 PM, Chris Idou wrote: > I had a 50,000 line Cocoa program, and I thought about restricting it to > Intel for that reason, but then I thought heck, I'll build it universal and > throw it out there. Not a single bug reported due to PPC, and a few happy > customers for

Re: Time to drop PowerPC support?

2010-01-15 Thread lbland
On Jan 15, 2010, at 12:18 AM, Dominic Blais wrote: > Thank you for these responses! I think we will roll out with PowerPC but > EOL support for it within 6 months of the next major Apple OS release. hi- VVI stopped releasing for PPC when SL came out, but still have persistent stores between P

Re: Time to drop PowerPC support?

2010-01-15 Thread Klaas.
On this subject I can only say that I am glad that Bento decided to support the PPC with 10.5 because otherwise I would have had to select another database. There must be millions of useable PPC systems around (4 here) and maybe I am not the only one who will not go on to 10.6 on my Intel system

Converting an NSAttributedString into an html string

2010-01-15 Thread Gustavo Pizano
Hello all. Well I asked this in the webkit list, to see how webkit does the trick, there Darin (thank if you are somewhere here also) told me that I could use the method :\ - (NSData *)dataFromRange:(NSRange)range documentAttributes:(NSDictionary *)dict error:(NSError**)error from the NSAtrib

Re: Converting an NSAttributedString into an html string

2010-01-15 Thread Gustavo Pizano
HEllo all.. Sorry im such a lama... I solved.. I just needed to initialize a NSString not an NSAttributedString.. also, I excluded the tags that tIm not interested in I usted the following.. and WOW... COCO its so great... it places the inline styles.. which is what I needed!!! NSArray

Re: Time to drop PowerPC support?

2010-01-15 Thread Dominic Blais
Thank you Chris, Kyle, and Lance. The benefits of keeping PPC support do seem to outweigh going Intel only. As what our framework uses defines a constraint for what can be built with it (i.e. if it's Intel only, developers can't build universal BxApps), it seems like it would be best for customer

Re: NSTableView column bindings and "deep" key paths

2010-01-15 Thread Keary Suska
On Jan 14, 2010, at 9:47 AM, Gerd Knops wrote: > I have a typical NSTableView setup where the column content is provided by an > NSArrayController. > > Now say a column is bound to arrayController.arrangedObjects key path a.b.c.d. > > In this scenario if "b" changes (even in a KVO-complient way

Re: Confused about setting selection in NSBrowser

2010-01-15 Thread Keary Suska
On Jan 14, 2010, at 9:56 PM, Chris Idou wrote: > I'm trying to set the selected item in an NSBrowser. > > I don't want to use setPath: because the items I'm storing in the browser are > not unique, so therefore paths are not unique. > > I'm trying to use setIndexPath: but when I try the program

Re: Confused about setting selection in NSBrowser

2010-01-15 Thread Corbin Dunn
On Jan 15, 2010, at 8:07 AM, Keary Suska wrote: > On Jan 14, 2010, at 9:56 PM, Chris Idou wrote: > >> I'm trying to set the selected item in an NSBrowser. >> >> I don't want to use setPath: because the items I'm storing in the browser >> are not unique, so therefore paths are not unique. >> >

Re: Displaying a non-contentual menu & attachPopUpWithFrame

2010-01-15 Thread Eric Gorr
Hello Mr. Ammon, It does help. Thank you! To test this out, I simply subclassed NSButton and only replaced the mouseDown: method with the following: - (void) mouseDown:(NSEvent *)theEvent { NSPopUpButtonCell *cell = [[NSPopUpButtonCell alloc] initTextCell:@"" pullsDown:NO]; NSMenu *tem

Scrolling

2010-01-15 Thread David Blanton
A custom view sub-classed from NSView when embedded in an NSScrollView has its drawRect method called when the NSScrollers are manipulated by the user. Is there a method further up the (NSResponder?) chain where scoll activity can be overridden? And if so, is there an example or sample to

Re: NSTableView column bindings and "deep" key paths

2010-01-15 Thread Gerd Knops
On Jan 15, 2010, at 9:59 AM, Keary Suska wrote: > On Jan 14, 2010, at 9:47 AM, Gerd Knops wrote: > >> I have a typical NSTableView setup where the column content is provided by >> an NSArrayController. >> >> Now say a column is bound to arrayController.arrangedObjects key path >> a.b.c.d. >>

Re: Core Video CIFilters/ playback / compression suggestions?

2010-01-15 Thread Travis Kirton
Hey Jean-Daniel, Thanks for the advice. We've already noticed that the main object that's taking up the most CPU seems to be whichever decoder we're using (jpegdecompress... etc). I haven't looked into it thoroughly enough yet, but hope that using GCD to distribute blocks of code across the 8 c

How can I populate certain table-columns with image cells while using NSArrayController?

2010-01-15 Thread Michael A. Crawford
Consider an NSTableView instance populated with data from an NSArrayController, which is bound to a content array containing instances of class foo. All of class foo's properties return BOOL and NSString values. The two BOOL values need to be shown in the table using icon images. Should the i

Re: Scrolling

2010-01-15 Thread David Blanton
Answered my own question .. trackKnob I knew this but its behavior was not understood ergo the question. What would code tracking the knob look like? I want something like (but what would mouseStilldown be?) - (void)trackKnob:(NSEvent *)theEvent { while(mouseStillDown) { [super tr

Changing TextEditField to StaticTextField

2010-01-15 Thread Hado Hein
Hello List, where do I switch a TextEditField to a static text field (meaning the white rectangle going off). I have a TextEditField that has a checkbox besides it. When checked the Field displays incoming values, when unchecked the field is an input field. It's a pity, but the field change is a

Problem with NSView and enterFullScreenMode method.

2010-01-15 Thread Vladislav Turbanov
Under Mac OS X version 10.5... When I message the enterFullScreenMode the NSOpengGLView enters the fullscreen mode but suddenly a white line above the view appears. This line does not belong to the view so it is nothing to do with the actual rendering. For example, if I set the fullscreen mode t

Re: Scrolling [SOLVED]

2010-01-15 Thread David Blanton
Never mind. Figured it all out. If anyone is interested ping me off- list. -db ___ 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

Re: Scrolling [SOLVED]

2010-01-15 Thread Kyle Sluder
Mailing list archives are very useful resources to developers, since they capture a lot of searches for related terminology that doesn't appear in the official documentation. Mailing list archives also tend to strip out email addresses, making it hard for people who encounter your thread to contact

Re: How can I populate certain table-columns with image cells while using NSArrayController?

2010-01-15 Thread Michael A. Crawford
Thank you for the article. -Michael On Jan 15, 2010, at 12:54 PM, Arun wrote: > You can find a beautiful article on the same @ > http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/ > > HTH > -Arun KA > > On Fri, Jan 15, 2010 at 11:20 PM, Michael A. Crawford > wrote: > Conside

Why does my menu have mutually exclusive states?

2010-01-15 Thread Eric Gorr
I have some sample code at: http://ericgorr.net/cocoadev/UtilityMenu.zip According to the documentation in "Application Menu and Pop-up List Programming Topics for Cocoa", to get mutually exclusive states, one my manage this oneself: You can use states to implement a group of mutually exclusi

Re: Why does my menu have mutually exclusive states?

2010-01-15 Thread Peter Ammon
On Jan 15, 2010, at 11:41 AM, Eric Gorr wrote: > I have some sample code at: > > http://ericgorr.net/cocoadev/UtilityMenu.zip > > According to the documentation in "Application Menu and Pop-up List > Programming Topics for Cocoa", to get mutually exclusive states, one my > manage this oneself

Re: Core Video CIFilters/ playback / compression suggestions?

2010-01-15 Thread douglas welton
Travis, I suspect that your issue might be related to compression. To achieve a smaller size takes time. Decompressing a video frame can take longer than you have to display it. Try compressing your video with the Animation codec as opposed to the H.264 codec. File size will balloon, but de

Re: Why does my menu have mutually exclusive states?

2010-01-15 Thread Eric Gorr
Ah, thank you. I knew I must have been missing something obvious. On Jan 15, 2010, at 2:50 PM, Peter Ammon wrote: > > On Jan 15, 2010, at 11:41 AM, Eric Gorr wrote: > >> I have some sample code at: >> >> http://ericgorr.net/cocoadev/UtilityMenu.zip >> >> According to the documentation in "App

Unable to get animation of NSProgressIndicator on my custom view (subclassed)

2010-01-15 Thread cocoa learner
Hi all, My NSProgressIndicator is not animating (determinant/indeterminant in both the cases), I have implemented the arrangement in following way - 1>. main window, 2>. NSImageView over main window's content view, 3>. Then my custom view(subclassed NSView), over NSImageView, 4>. Then over my cus

Re: Unable to get animation of NSProgressIndicator on my custom view (subclassed)

2010-01-15 Thread Nick Zitzmann
On Jan 15, 2010, at 1:03 PM, cocoa learner wrote: > Any body has any suggestion how it will work??? > Do I need to implement any other method in my custom view subclass, except - > drawRect??? Are you doing something that is blocking the main thread's run loop from running? NSProgressIndicator

Re: How can I populate certain table-columns with image cells while using NSArrayController?

2010-01-15 Thread Quincey Morris
On Jan 15, 2010, at 09:50, Michael A. Crawford wrote: > Normally, when not using NSArrayController, I would make my controller the > data-source for the table. When the > -[tableView:objectValueForTableColumn:row:] method is called for the BOOL > columns, I would return an NSImageCell. I was

Re: Core Video CIFilters/ playback / compression suggestions?

2010-01-15 Thread Travis Kirton
Thanks Douglas, That's a good point. I'm playing a dozen or more videos all at the same time, so it's a tricky balance between decompression rates and file size. I'll post my situation in QT-dev too. Cheers, t On 2010-01-15, at 11:55 AM, douglas welton wrote: > Travis, > > I suspect that you

Re: Unable to get animation of NSProgressIndicator on my custom view (subclassed)

2010-01-15 Thread Quincey Morris
On Jan 15, 2010, at 12:03, cocoa learner wrote: > My NSProgressIndicator is not animating (determinant/indeterminant in both > the cases), I have implemented the arrangement in following way - > > 1>. main window, > 2>. NSImageView over main window's content view, > 3>. Then my custom view(subcla

Re: Scrolling [SOLVED]

2010-01-15 Thread David Blanton
Thanks for the heads up Kyle. The solution was to override trackKnob and in it set a flag that scrolling was in play. Then in my drawRect I check the flag to do appropriate scrolling. Then in coming back from [super trackKnob] I knw scrolling is done so I can clear the flag; - (void)tr

Clipping subview drawing to arbitrary path or image (iPhone)

2010-01-15 Thread Rick Mann
Hi. We have a requirement to clip a set of subviews' drawing to an arbitrary path or clip image specified by a containing (parent) view. Is there any way to accomplish this? UIView, not NSView. TIA, Rick ___ Cocoa-dev mailing list (Cocoa-dev@lists.a

Re: Scrolling [SOLVED]

2010-01-15 Thread Quincey Morris
On Jan 15, 2010, at 14:19, David Blanton wrote: > The solution was to override trackKnob and in it set a flag that scrolling > was in play. Then in my drawRect I check the flag to do appropriate > scrolling. Then in coming back from [super trackKnob] I knw scrolling is > done so I can clear t

Re: Scrolling [SOLVED]

2010-01-15 Thread Graham Cox
On 16/01/2010, at 9:19 AM, David Blanton wrote: > - (void)drawRect:(NSRect)rect { > [super drawRect:rect]; > > ... > if(m_scrolling) > { > NSLog(@"drawRect scrolling"); > > float v = 100*[m_vScroller floatValue]; >

Re: Unable to get animation of NSProgressIndicator on my custom view (subclassed)

2010-01-15 Thread Shane Stanley
On 16/1/10 7:44 AM, "Quincey Morris" wrote: > AFAIK, the "animation" meant by 'startAnimation:' is *not* the animation of > the pattern inside the progress indicator, but an animation of the change in > the length of the filled-in part of the progress bar. That is, when it goes > from 1/4 to 1/2,

Out of memory, or some other problem?

2010-01-15 Thread Graham Cox
Hi all, I received the following (edited) crash log from the field: Model: Unknown (MacBookPro2,1) CPU Speed: 2x 2.15 GHz Code Type: X86 (Native) Parent Process: launchd [163] Date/Time: 2010-01-15 20:02:43.837 +0100 OS Version: Mac OS X 10.6.2 (10C540) Report Version: 6 Exc

Re: Clipping subview drawing to arbitrary path or image (iPhone)

2010-01-15 Thread David Duncan
On Jan 15, 2010, at 2:31 PM, Rick Mann wrote: > Hi. We have a requirement to clip a set of subviews' drawing to an arbitrary > path or clip image specified by a containing (parent) view. Is there any way > to accomplish this? Do the subviews move? If not, it would seem that the best way to dea

Re: Unable to get animation of NSProgressIndicator on my custom view (subclassed)

2010-01-15 Thread Kyle Sluder
On Fri, Jan 15, 2010 at 2:54 PM, Shane Stanley wrote: > On 16/1/10 7:44 AM, "Quincey Morris" wrote: > >> AFAIK, the "animation" meant by 'startAnimation:' is *not* the animation of >> the pattern inside the progress indicator, but an animation of the change in >> the length of the filled-in part

Re: Clipping subview drawing to arbitrary path or image (iPhone)

2010-01-15 Thread Rick Mann
On Jan 15, 2010, at 15:53:29, David Duncan wrote: > On Jan 15, 2010, at 2:31 PM, Rick Mann wrote: > >> Hi. We have a requirement to clip a set of subviews' drawing to an arbitrary >> path or clip image specified by a containing (parent) view. Is there any way >> to accomplish this? > > > Do

Re: Clipping subview drawing to arbitrary path or image (iPhone)

2010-01-15 Thread David Duncan
On Jan 15, 2010, at 4:10 PM, Rick Mann wrote: >> If not, this could be done (with performance penalty) using the layer's mask >> property. Simplest way I can think is to make a new layer, assign the >> contents of the parent layer to that new layer's contents, then assign that >> layer as the m

Re: Out of memory, or some other problem?

2010-01-15 Thread Nick Zitzmann
On Jan 15, 2010, at 3:56 PM, Graham Cox wrote: > I've never seen any problems with PDF generation occur before, but the user > says this is a fairly large file. Is this simply a case of running out of > memory, or something more insidious? I doubt it. I looked at the source code for that funct

Smart folder definition dialog

2010-01-15 Thread Trygve Inda
Is there sample code to do the type of windows used to define smart playlists... With expanding rules +/-. Eg... Name is, contains, begins with --- +/- Clicking + will reveal a new row to add for example Size is, is greater than etc. Thanks, Trygve _

Re: Clipping subview drawing to arbitrary path or image (iPhone)

2010-01-15 Thread Rick Mann
On Jan 15, 2010, at 16:16:15, David Duncan wrote: > On Jan 15, 2010, at 4:10 PM, Rick Mann wrote: > >>> If not, this could be done (with performance penalty) using the layer's >>> mask property. Simplest way I can think is to make a new layer, assign the >>> contents of the parent layer to tha

Re: Unable to get animation of NSProgressIndicator on my custom view (subclassed)

2010-01-15 Thread Quincey Morris
On Jan 15, 2010, at 14:54, Shane Stanley wrote: > On 16/1/10 7:44 AM, "Quincey Morris" wrote: > >> AFAIK, the "animation" meant by 'startAnimation:' is *not* the animation of >> the pattern inside the progress indicator, but an animation of the change in >> the length of the filled-in part of th

Smart Lists

2010-01-15 Thread Trygve Inda
I have seen the CoreRecipes code, but as it is nearly 5 years old... Is there any more current code to do smart lists? I am not sure if I should use a simple NSArray to hold my data (which I think would work) or if Core Data is more appropriate. Thanks, Trygve _

Re: Smart folder definition dialog

2010-01-15 Thread Matthew Lindfield Seager
Google NSPredicateEditor. Regards, Matt On Saturday, January 16, 2010, Trygve Inda wrote: > Is there sample code to do the type of windows used to define smart > playlists... With expanding rules +/-. > > Eg... > > Name is, contains, begins with ---   +/- > > Clicking + will reveal a new row to

needing help w/ asynchronous message problem, using YAMessageQueue

2010-01-15 Thread Shane
I have a thread already where I use asynchronous messages to communicate (using YAMessageQueue). My main application thread sends messages to a task thread similar to the below line, but for some reason, when I'm sending from my task thread to the main application thread, I'm getting the following

Adding to-many objects programmatically

2010-01-15 Thread Jenny M
Hi all, I need to add a set of default objects to my core data store when the application is launched for the first time. (I store the properties for these objects in the app's plist.) The two objects (Types and Categories) are both to-many relationships - one type has many categories, and one cat

Re: Adding to-many objects programmatically

2010-01-15 Thread mmalc Crawford
On Jan 15, 2010, at 8:52 pm, Jenny M wrote: > but I don't know about the code... > Modifying to-many relationships is described here: What did you t

Re: Adding to-many objects programmatically

2010-01-15 Thread Jenny M
I've been setting it using key-value coding: [object setValue:mySet forKey:categories] so far, so that's good to know I'm on the right track. Though at the moment I am apparently having difficulties comparing strings, because I can't get my log messages to appear in the console hmm. Okay, duh,

Re: Adding to-many objects programmatically

2010-01-15 Thread mmalc Crawford
On Jan 15, 2010, at 10:00 pm, Jenny M wrote: > I guess my question is also, was there any easier way to do it?? Is that how > it's normally done? > It's not clear exactly what you're referring to. Do you mean, is the typical pattern that which you described earlier, namely: > I've been setting

Re: Scrolling [SOLVED]

2010-01-15 Thread David Blanton
Hi Graham - We generate a bitmap sized to [view visibleRect] so we have to do it this way. Our model is portable, we use it on Windows (which is where it was architected). The scrolling is very fast. As of now we have added a number of elements to our bitmap which can be sized and rotate

Re: Adding to-many objects programmatically

2010-01-15 Thread Jenny M
When I tried to use the getter/setter, I get a build warning that says the NSManagedObject may not respond to that method. I noticed in the documentation, they're referring to the entities themselves - Employee and Department. I don't use custom classes, just the data model, so I've been referring

Re: Adding to-many objects programmatically

2010-01-15 Thread mmalc Crawford
On Jan 15, 2010, at 10:57 pm, Jenny M wrote: > The objects do load, I ran the program regardless of warnings and it > did set the categories and references. So, how would I get it to build > without those warnings? > All of this is covered in the documentation: