Re: mySQL client lib linking problem...

2009-11-23 Thread Karolis Ramanauskas
Glad you found your solution... This is out of my league. Quite interesting though, so I will creep this exchange. Peace On Mon, Nov 23, 2009 at 1:32 AM, Michael Davey wrote: > Well, it may not have been the most elegant of solutions, but it works... > > Basically I downloaded the binary tarbal

NSStream Operation Timed out issue

2009-11-23 Thread Ramesh P
Hi all, I have an cocoa application which used to transfer files to server using the NSStream SSL Socket connection. For every successful file transaction server will send a response to my application. This is working fine for small files. But when i transfer big files my application throwing an er

How to avoid text distortion

2009-11-23 Thread padmakumar
Dear Rob, Thanks a lot for your valuable inputs, I have fixed the issue of distorted fonts/text in all NSTextFields which are not selectable and not editable(text for user info / display pupose only)and labels by changing the default background color of all NSTextFields to the same color(Mer

Re: CoreData abstract entity migration issue

2009-11-23 Thread jonat...@mugginsoft.com
On 22 Nov 2009, at 21:59, Quincey Morris wrote: > On Nov 22, 2009, at 03:39, jonat...@mugginsoft.com wrote: > >> I have a very simple object model that contains, along with 4 or 5 others, >> an abstract entity. >> The app uses NSPersistentDocument. >> >> I have created a new model version that

A question of legality...

2009-11-23 Thread Michael Davey
I want to share with you all the 4 arch version of the mysql libs that I went to some trouble to make today, but in light of the information given to me today by Andrew Farmer, I do not know if this is legal. Anyone know? ___ Cocoa-dev mailing list (C

Re: NSTreeController content array bindings

2009-11-23 Thread Mike Abdullah
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaBindings/Concepts/Troubleshooting.html#//apple_ref/doc/uid/TP40002148 Don't bind to an NSMutableArray. Bind to an array property of an object. On 23 Nov 2009, at 03:20, Mazen M. Abdel-Rahman wrote: > Hi All, > > I am hav

Re: nstableview text selection

2009-11-23 Thread Richard
thank you jens, that is most helpful, i will take a look at the webview. On Sun, Nov 22, 2009 at 6:47 PM, Jens Alfke wrote: > > On Nov 22, 2009, at 2:06 AM, Richard wrote: > > > as part of an application i am working on, i have made a chat client in > the > > style of ichat with pics and bubbles

drawRect method not called after several hours...

2009-11-23 Thread Boris Prohaska
Hi guys... this is a tricky one. My application is intended to run for serveal hours/days/weeks. It does GUI updates multiple times a second. But after several hours/days the drawRect: method is stopped beeing called on _all_ views. The application still does what it is supposed to do, but the

change value for key in NSDictionary

2009-11-23 Thread Ariel Feinerman
Hi, there is instance of NSDictionary to storage graphics attributes (full screen, buffers` sizes, resolution), my question is can I change value for, example, key "fullscreen" somewhere in my progam? { NSArray *key = [NSArray arrayWithObject: @"fullscreen"]; NSArray *values = [NSArray arrayWithOb

Re: drawRect method not called after several hours...

2009-11-23 Thread Mike Abdullah
Sounds to me like an exception occurred at some point and upset the drawing mechanism (think I've seen something similar before, but not over a long time period). Getting in the logs to suggest an exception? Mike. On 23 Nov 2009, at 12:30, Boris Prohaska wrote: > Hi guys... this is a tricky on

Locale based font

2009-11-23 Thread Symadept
Hi, I found out the way to show custom font. 1. First give information in info.plist, under the identifier, Application fonts resource path. 2. Add this file into the Resources folder. 3. Invoke using this method. [NSFont fontWithName:CP_FONT_NAME size:11], NSFontAttributeName, Works fine. But w

Strings mangled on generalPasteboard

2009-11-23 Thread Kevin Walzer
I'm writing a tool that wants to make NSString data available after a drag operation to the general clipboard: the idea is to extract the data from the draggingPasteboard and then write the string data to the generalClipboard. If the dragtype is NSString or NSURL, this works as expected. Th

Re: change value for key in NSDictionary

2009-11-23 Thread Klaus Backert
On 23 Nov 2009, at 13:33, Ariel Feinerman wrote: Hi, there is instance of NSDictionary to storage graphics attributes (full screen, buffers` sizes, resolution), my question is can I change value for, example, key "fullscreen" somewhere in my progam? From the NSDictionary Class Reference: "An

Re: drawRect method not called after several hours...

2009-11-23 Thread Boris Prohaska
Hi Mike, no there is no exception raised. The interesting thing is that when i touch the frozen window in the lower right hand corner and resize the view... the drawing works; but only for the time i resize it. The application works perfectly in the backend. It seems that some system is not call

Re: Locale based font

2009-11-23 Thread Ricky Sharp
I am about to play around with something similar. In my iPhone app, I have some calls with boldSystemFontOfSize. But, for certain locales, it should be a plain font and the size may need to be tweaked. I then had an idea to write a static method to obtain a font style and size based on loca

How can I not block hotkey from other apps

2009-11-23 Thread Symadept
Hi, I managed to get my app support for registering hotkeys and using it. But unfortunately if I register Cmd P as hot key in my app, no one in the system can use this hotkey to print unless I deregister it. How can I make it not block others. Any pointers highly appreciable. Target: Tiger, Leop

Transparency Help

2009-11-23 Thread R T
I have a litho image (black & white pixels only) and I want to make all the white pixels transparent. I am using Quartz 2d to display the image and I have a Quartz composition containing a single .cikernel... kernel vec4 whiteToTransparent(sampler source_image) { vec4 pixValue; pixValue =

NIB/XIB created objects, should they be released in -[dealloc]?

2009-11-23 Thread Michael A. Crawford
I wouldn't have though so. I would assume that since I did not allocate them directly, I don't need to clean them up. I've just inspected some code that declares properties that are marked as outlets and whose member variables are allocated in the NIB file. When the class' dealloc method is c

Re: NIB/XIB created objects, should they be released in -[dealloc]?

2009-11-23 Thread Sherm Pendley
On Mon, Nov 23, 2009 at 11:13 AM, Michael A. Crawford wrote: > I wouldn't have though so.  I would assume that since I did not allocate them > directly, I don't need to clean them up. I've just inspected some code that > declares properties that are marked as outlets and whose member variables a

Re: NIB/XIB created objects, should they be released in -[dealloc]?

2009-11-23 Thread Dave Camp
On Nov 23, 2009, at 8:13 AM, Michael A. Crawford wrote: > I wouldn't have though so. I would assume that since I did not allocate them > directly, I don't need to clean them up. I've just inspected some code that > declares properties that are marked as outlets and whose member variables are

Re: Transparency Help

2009-11-23 Thread glenn andreas
On Nov 23, 2009, at 10:12 AM, R T wrote: > I have a litho image (black & white pixels only) and I want to make all the > white pixels transparent. I am using Quartz 2d to display the image and I > have a Quartz composition containing a single .cikernel... > Any ideas? > Why not just draw it

Re: NSStream Operation Timed out issue

2009-11-23 Thread Jens Alfke
On Nov 23, 2009, at 12:02 AM, Ramesh P wrote: > I have an cocoa application which used to transfer files to server > using the NSStream SSL Socket connection. > For every successful file transaction server will send a response to > my application. This is working fine for small files. But when i

Re: How can I not block hotkey from other apps

2009-11-23 Thread Bill Cheeseman
On Nov 23, 2009, at 10:17 AM, Symadept wrote: > I managed to get my app support for registering hotkeys and using it. But > unfortunately if I register Cmd P as hot key in my app, no one in the system > can use this hotkey to print unless I deregister it. How can I make it not > block others. I

Re: Strings mangled on generalPasteboard

2009-11-23 Thread Jens Alfke
On Nov 23, 2009, at 5:06 AM, Kevin Walzer wrote: > If the dragtype is NSString or NSURL, this works as expected. The same data > that is dragged comes out intact on the clipboard. However, file paths are > inexplicably converted to file URL's, so that instead of > "/Users/kevin/Desktop/foo.txt

Re: Strings mangled on generalPasteboard

2009-11-23 Thread Jens Alfke
On Nov 23, 2009, at 5:06 AM, Kevin Walzer wrote: > If the dragtype is NSString or NSURL, this works as expected. The same data > that is dragged comes out intact on the clipboard. However, file paths are > inexplicably converted to file URL's, so that instead of > "/Users/kevin/Desktop/foo.txt

Re: mySQL client lib linking problem...

2009-11-23 Thread Nick Zitzmann
On Nov 23, 2009, at 12:32 AM, Michael Davey wrote: > As an aside I have the 64bit PPC version as well - does anyone know if this > is needed? Only if you're planning on making a PPC64 version of your app. Otherwise, it's a waste of space. The PPC64 architecture never did get a whole lot of lov

CATransition for whole windows?

2009-11-23 Thread PCWiz
CATransition can be used to animate views, but is there a way to animate complete windows (NSWindow's or NSPanel's)? Thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Re: CATransition for whole windows?

2009-11-23 Thread Kyle Sluder
On Nov 23, 2009, at 9:32 AM, PCWiz wrote: CATransition can be used to animate views, but is there a way to animate complete windows (NSWindow's or NSPanel's)? It depends on what you mean. You have the animator proxy, of course, which can do opacity and frame changes. Changes to subviews of

Re: CATransition for whole windows?

2009-11-23 Thread Jens Alfke
On Nov 23, 2009, at 9:32 AM, PCWiz wrote: > CATransition can be used to animate views, but is there a way to animate > complete windows (NSWindow's or NSPanel's)? If you're just talking about animating movement/resize, you can do that with -setFrame:display:animate: or using the NSAnimatablePr

Transparency Help 2

2009-11-23 Thread R T
Given: A litho Image, Black & White pixels only. I want to show just the Black Pixels in a subclassed NSView. I've posted previously with some code and had 1 simple response that has not panned out for me. Any ideas out there, anybody been down this road? Thanks Rick _

Re: CATransition for whole windows?

2009-11-23 Thread Matt Neuburg
On Mon, 23 Nov 2009 10:32:24 -0700, PCWiz said: >CATransition can be used to animate views, but is there a way to >animate complete windows (NSWindow's or NSPanel's)? Animate *what* about a complete window? If you mean what's *in* the window, that *is* a view (the window's contentView). If you me

[OT] Re: A question of legality...

2009-11-23 Thread Alastair Houghton
On 23 Nov 2009, at 10:58, Michael Davey wrote: > I want to share with you all the 4 arch version of the mysql libs that I went > to some trouble to make today, but in light of the information given to me > today by Andrew Farmer, I do not know if this is legal. > > Anyone know? This isn't real

Re: Strings mangled on generalPasteboard

2009-11-23 Thread mmalc Crawford
On Nov 23, 2009, at 8:54 am, Jens Alfke wrote: > The Cocoa Pasteboard API has the annoying limitation that there is no > standard, public data type for multiple URLs. > This is no longer true with Mac OS X v10.6 and later -- you can write and read multiple URLs to and from to the pasteboard.

Re: CATransition for whole windows?

2009-11-23 Thread PCWiz
What I had in mind was a window vanishing effect for when the window is closed (for example a fade out is easy to do with [[window animator] setAlphaValue:0.0];) but something slightly more complex, such as the private "suckEffect" transition that CATransition offers. On 2009-11-23, at 11:0

ANN: CamelBones 1.1.0

2009-11-23 Thread Sherm Pendley
Now supporting Leopard and Snow Leopard, and more. Read the full announcement at: sherm-- -- Cocoa programming in Perl: http://camelbones.org ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Best approach to write an uninstaller for osx

2009-11-23 Thread Kyle Sluder
On Sat, Nov 21, 2009 at 4:50 PM, Jens Alfke wrote: > Sure, you can do that. As I said, there's no particular trick for deleting > the uninstaller. The filesystem won't stop you from deleting your own binary > (or moving it to the trash.) The filesystem doesn't care, but the OS sure as heck does

Re: Transparency Help

2009-11-23 Thread Greg Guerin
R T wrote: kernel vec4 whiteToTransparent(sampler source_image) { vec4 pixValue; pixValue = sample(source_image, samplerCoord(source_image)); return (pixValue == vec4(1,1,1,1) ? vec4(1,1,1,0) : vec4(pixValue)); } I'm ignorant of GL shading, but something looks wrong here. If pixValue's ty

Re: Best approach to write an uninstaller for osx

2009-11-23 Thread James Walker
Kyle Sluder wrote: On Sat, Nov 21, 2009 at 4:50 PM, Jens Alfke wrote: Sure, you can do that. As I said, there's no particular trick for deleting the uninstaller. The filesystem won't stop you from deleting your own binary (or moving it to the trash.) The filesystem doesn't care, but the OS

Re: Strings mangled on generalPasteboard

2009-11-23 Thread Jens Alfke
On Nov 23, 2009, at 10:30 AM, mmalc Crawford wrote: > This is no longer true with Mac OS X v10.6 and later -- you can write and > read multiple URLs to and from to the pasteboard. That's nice to know. > e.g. >[url pasteboardPropertyListForType:(NSString *)kUTTypeURL] But that still only w

Re: CATransition for whole windows?

2009-11-23 Thread Jens Alfke
On Nov 23, 2009, at 10:33 AM, PCWiz wrote: > What I had in mind was a window vanishing effect for when the window is > closed (for example a fade out is easy to do with [[window animator] > setAlphaValue:0.0];) but something slightly more complex, such as the private > "suckEffect" transition

Re: Strings mangled on generalPasteboard

2009-11-23 Thread Kyle Sluder
On Mon, Nov 23, 2009 at 1:04 PM, Jens Alfke wrote: > But that still only writes a single NSURL, right? How do you write multiple > using that API? I highly recommend watching the WWDC09 session on this topic, if for no other reason than for the song. --Kyle Sluder __

Re: Transparency Help

2009-11-23 Thread Kyle Sluder
On Mon, Nov 23, 2009 at 8:12 AM, R T wrote: > I have a litho image (black & white pixels only) and I want to make all the > white pixels transparent. I am using Quartz 2d to display the image and I > have a Quartz composition containing a single .cikernel... This is more appropriate to the quar

Re: Best approach to write an uninstaller for osx

2009-11-23 Thread Nick Zitzmann
On Nov 23, 2009, at 2:02 PM, James Walker wrote: > Could you define "freak out" in this context? I haven't noticed any problem > with moving a running app to the trash just before quitting it. If you move a running application, then NSBundle will return the old & obsolete paths for bundle res

Re: Strings mangled on generalPasteboard

2009-11-23 Thread Jens Alfke
On Nov 23, 2009, at 1:23 PM, Kyle Sluder wrote: >> But that still only writes a single NSURL, right? How do you write multiple >> using that API? > > I highly recommend watching the WWDC09 session on this topic, if for > no other reason than for the song. A song about new Pasteboard APIs?! Tha

Re: drawRect method not called after several hours...

2009-11-23 Thread Alexander Spohr
Am 23.11.2009 um 13:30 schrieb Boris Prohaska: > It does GUI updates multiple times a second. How? atze ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: [OT] Re: A question of legality...

2009-11-23 Thread Jean-Daniel Dupas
Le 23 nov. 2009 à 19:10, Alastair Houghton a écrit : > On 23 Nov 2009, at 10:58, Michael Davey wrote: > >> I want to share with you all the 4 arch version of the mysql libs that I >> went to some trouble to make today, but in light of the information given to >> me today by Andrew Farmer, I do

Re: Transparency Help 2

2009-11-23 Thread Alexander Spohr
Am 23.11.2009 um 19:01 schrieb R T: > Given: A litho Image, Black & White pixels only. > I want to show just the Black Pixels in a subclassed NSView. Underlay all white pixel with an alpha of 0 and composite that? atze ___ Cocoa-dev mailing

Re: Strings mangled on generalPasteboard

2009-11-23 Thread mmalc Crawford
On Nov 23, 2009, at 1:04 pm, Jens Alfke wrote: >> [url pasteboardPropertyListForType:(NSString *)kUTTypeURL] > > But that still only writes a single NSURL, right? How do you write multiple > using that API? > On Mac OS X v10.6 and later, you can write multiple items to a pasteboard, so you

Re: WebView in a modal panel - any new solutions?

2009-11-23 Thread Mike Abdullah
WebKit is open source, so fire up your SVN client for release 4.0.3. In WebViewPrivate.h you will see this: @interface WebView (WebPendingPublic) - (void)scheduleInRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode; - (void)unscheduleFromRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode; @

Re: Strings mangled on generalPasteboard

2009-11-23 Thread Kevin Walzer
On 11/23/09 11:54 AM, Jens Alfke wrote: Again, you're checking for the URL flavor before the filenames flavor. Reverse the order of these tests. Unfortunately, that didn't seem to help. It appears that URL's take precedence over file paths. Removing the URL pasteboard type solved the proble

Re: Strings mangled on generalPasteboard

2009-11-23 Thread Jens Alfke
On Nov 23, 2009, at 3:51 PM, Kevin Walzer wrote: > Given that file paths are a requirement for my project and URL's are a > "nice-to-have," I'll have to move forward without NSURL. Too bad. Why? To get the filesystem path just do if ([url isFileURL]) path = [url path];

Re: Strings mangled on generalPasteboard

2009-11-23 Thread Kevin Walzer
On 11/23/09 7:14 PM, Jens Alfke wrote: On Nov 23, 2009, at 3:51 PM, Kevin Walzer wrote: Given that file paths are a requirement for my project and URL's are a "nice-to-have," I'll have to move forward without NSURL. Too bad. Why? To get the filesystem path just do if ([url isFileUR

Re: Strings mangled on generalPasteboard

2009-11-23 Thread Jens Alfke
On Nov 23, 2009, at 4:16 PM, Kevin Walzer wrote: > Does this address the problem of only one NSURL being returned? No. But BTW I looked at your code again and I see why it's failing to get the paths. > for (NSString *type in types) { >//string type >if ([type isEqualToString:NSStringP

EXC_BAD_ACCESS when calling NSOpenPanel

2009-11-23 Thread Darren Wheatley
Hi, I have the following code as the action from a button click: - (IBAction)chooseFile:(id)sender; { NSOpenPanel *openPanel = [NSOpenPanel openPanel]; [openPanel setCanChooseDirectories:NO]; [openPanel setCanCreateDirectories:NO]; [openPanel beginSheetForDirectory:nil

Re: EXC_BAD_ACCESS when calling NSOpenPanel

2009-11-23 Thread Darren Wheatley
The only difference between the two machines is that the working machine has DefaultFolderX installed on it. As a test I installed Default Folder X on the MBP as well. The code now runs without error. So, why would Default Folder X be masking the problem (it overloads the file open/save dial

Re: EXC_BAD_ACCESS when calling NSOpenPanel

2009-11-23 Thread Jens Alfke
On Nov 23, 2009, at 4:51 PM, Darren Wheatley wrote: > On my 10.6.2 iMac running XCode 3.2.1 it builds and runs fine. On my MacBook > Pro with exactly the same OS version (10.6.2) and XCode version I get a crash > - EXC_BAD_ACCESS when I run it. Just the exception type isn't very useful. You sh

Re: EXC_BAD_ACCESS when calling NSOpenPanel

2009-11-23 Thread Graham Cox
On 24/11/2009, at 11:51 AM, Darren Wheatley wrote: > - (IBAction)chooseFile:(id)sender; > { >NSOpenPanel *openPanel = [NSOpenPanel openPanel]; >[openPanel setCanChooseDirectories:NO]; >[openPanel setCanCreateDirectories:NO]; >[openPanel beginSheetForDirectory:nil >

Re: NSTreeController content array bindings

2009-11-23 Thread Mazen M. Abdel-Rahman
Thanks everyone for your help on this. Turns out my problem was initializing and adding objects to my array to late in the process - I was doing it in the windowDidLoad function - by which time the bindings have already happened - and since I was add objects to the array by just using the addOb

mySQL libs and an apology...

2009-11-23 Thread Michael Davey
First off, sorry to those who I have offended by asking the question of whether or not I can share my libs legally to this list. It was not my intention to do that. What I end up distributing with my application is still being considered, and I hope to resolve that before I approach my clients

Re: Locale based font

2009-11-23 Thread Symadept
Hi Ricky, Thank you very much for your response. But can we have any way where I can find current locale is English, I mean all versions of English. This could solve my issue. Regards Mustafa On Mon, Nov 23, 2009 at 9:50 PM, Ricky Sharp wrote: > I am about to play around with something simila

Build target question

2009-11-23 Thread Michael Davey
I am about to add a new target to my project as it will be re-using a lot of the code generated from my server application and I do not want to start creating duplicate copies of classes that I am writing. So far, so good, I am finding my way around making my new target, but have a quick questi

Re: Strings mangled on generalPasteboard

2009-11-23 Thread Kevin Walzer
On 11/23/09 7:26 PM, Jens Alfke wrote: You're looping over all the types on the drag pasteboard, and every time you stuff your resulting 'pasteboardvalue' string into the general pasteboard. Since each iteration overwrites the result of the previous ones, you only end up handling the last ty

Re: Transparency Help 2

2009-11-23 Thread BravoBug Software
Here is a method that applies 'mask' based on a given NSColor. ie, you pass it an NSImage, a NSColor (in your case, white), and a threshold, and it will make transparent all the pixels of that color within a threshold. So you can use this to knock out the white pixels of an NSImage. Then, of cours

Re: Build target question

2009-11-23 Thread Karolis Ramanauskas
Perhaps not quite what you need but I am working on code for iPhone and OSX in parallel and I am using one main.m, one Prefix.pch. I believe you will need several info.plist files because target specific stuff lives in them, this is easy though because you point to info.plist from the target info p

Re: Build target question

2009-11-23 Thread Michael Davey
Thanks! On 24 Nov 2009, at 14:02, Karolis Ramanauskas wrote: > Perhaps not quite what you need but I am working on code for iPhone and OSX > in parallel and I am using one main.m, one Prefix.pch. I believe you will > need several info.plist files because target specific stuff lives in them, >

Re: Build target question

2009-11-23 Thread Kyle Sluder
Your question is more appropriate for the Xcode-users list, and asking there might generate more response. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Cont

Re: Strings mangled on generalPasteboard

2009-11-23 Thread Jens Alfke
On Nov 23, 2009, at 5:54 PM, Kevin Walzer wrote: > Basically, what I'm trying to do is implement basic drag support for a > cross-platform GUI library that runs on top of Cocoa (Tk). My approach is > retrieve string data from the drag pasteboard (either a raw string, an array > of file paths,

Re: NSTableView retain count problem

2009-11-23 Thread Shane
> There are two self's, I.e. two different instances.  The name 'self' isn't a > single variable.  It represents the object that's responding to the message, > and executing the method. > > My guess is that one instance is created in the nib, and the other is > created in code you wrote. > > Use th

Re: NSTableView retain count problem

2009-11-23 Thread Kyle Sluder
On Mon, Nov 23, 2009 at 7:43 PM, Shane wrote: >        // This is the 1st and should be only instance I create. No, it's not, as evidenced by... > When I'm viewing the call stack in the debugger, I see that my > DataViewController's init method is called a second time from the line > … "NSView *

Problem on NSPopUpButton Class

2009-11-23 Thread charisse napeÿfffff1as
Hello, Is there a known problem with subclassing an NSPopUpButton class in Snow Leopard 10.6.2 ? Problem: subclassed popup button cannot be disabled sometimes. Scenario: Instead of using NSPopUpButton directly, I created a subclass of NSPopUpButton named MyPopUpButton because there are other t

[iphone] UITableViewCell set cell attributes based on indexPath.row number

2009-11-23 Thread Philip Vallone
Hi List, If I have an UITableViewCell and want to set the cell attributes based on indexPath.row number, how could I do this? In the below example, the cells are drawn dynamically and work until the user moves the table. When the first 4 four rows are redrawn, their font changes. How do I set t

Re: UI Question: Hide application window after minimising

2009-11-23 Thread Kyle Sluder
> On 21 Nov 2009, at 10:09, Michael Davey wrote: > My application only has one window, so this dicussion is a bit moot, but I > see your point. > >> What this sounds like is that the application hides itself when one of its >> windows is miniaturized. ([NSApp hide: nil] when a window's delegate

Re: Problem on NSPopUpButton Class

2009-11-23 Thread Kyle Sluder
On Mon, Nov 23, 2009 at 1:27 AM, charisse napeÿf1as wrote: > Problem:  subclassed popup button cannot be disabled sometimes. > Scenario: Instead of using NSPopUpButton directly, I created a subclass of > NSPopUpButton named MyPopUpButton because there are other things I needed > done in that

Re: [iphone] UITableViewCell set cell attributes based on indexPath.row number

2009-11-23 Thread Brian Slick
The stuff outside of the if (cell == nil) block will be performed on each cell, whether new or reused. You need to assume that the current display of the cell is "wrong", and do what is necessary to make it right. In this case, if one of your red cells gets reused for rows 0-3, there is nothin

Re: Problem with NSTableView in NSSplitView

2009-11-23 Thread Kyle Sluder
On Sun, Nov 22, 2009 at 11:21 PM, Martin Hewitson wrote: > I'm having some trouble when I have an NSTableView in an NSSplitView. I have > the table set in IB to resize with the view it's in (all struts clicked). The > table does not fill the full view. I have additionally a button below the > t

Re: CATransition for whole windows?

2009-11-23 Thread Henry McGilton (Boulevardier)
On Nov 23, 2009, at 10:33 AM, PCWiz wrote: > What I had in mind was a window vanishing effect for when the window is > closed (for example a fade out is easy to do with [[window animator] > setAlphaValue:0.0];) but something slightly more complex, such as the private > "suckEffect" transition

Re: NSTableView retain count problem

2009-11-23 Thread Shane
> The only place you want DataViewController to live in that nib file is > as the class of File's Owner. Thank you. This has cleared up much for me about nibs. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Problem on NSPopUpButton Class

2009-11-23 Thread charisse napeÿfffff1as
Below is my code #import "MyPopupButton.h" @implementation MyPopupButton - (void) awakeFromNib { MyPopupButtonCell *newCell = [[MyPopupButtonCell alloc] init]; [newCell setAction:[[self cell] action]]; [newCell setTarget:[[self cell] target]]; [newCell setControlSize:[[self c

[Moderator] Re: [OT] Re: A question of legality...

2009-11-23 Thread Scott Anguish
On Nov 23, 2009, at 1:10 PM, Alastair Houghton wrote: > On 23 Nov 2009, at 10:58, Michael Davey wrote: > >> I want to share with you all the 4 arch version of the mysql libs that I >> went to some trouble to make today, but in light of the information given to >> me today by Andrew Farmer, I d

Core Data: Specifying latest .mom resource. Was: NSMigratePersistentStoresAutomaticallyOption...

2009-11-23 Thread Jerry Krinock
Sorry, I'm back with this problem. Although the code I posted worked perfectly in a Debug build, when I tested a Release build, the invocation of -mergedModelFromBundles: raised this exception : Can't merge models with two different entities named 'Ixternalizer_entity' Apparently if you've

Re: Problem on NSPopUpButton Class

2009-11-23 Thread Gregory Weston
charisse wrote: > Is there a known problem with subclassing an NSPopUpButton class in Snow > Leopard 10.6.2 ? > > Problem: subclassed popup button cannot be disabled sometimes. Working fine here just now. Has worked fine in the past. I'm going to go out on a limb and say there's probably some