Re: NSSavePanel problem

2013-02-24 Thread Peter Hudson
Here is the code for running the NSSavePanel. I run the panel using runModal. I simply never return from the runModal if I click the directory popup. Peter -(IBAction)exportDayOutOfDaysReportToHTML:(id)sender { NSSavePanel *sp = [NSSavePanel savePanel]; [sp

Re: Problem with NSDatePicker in popover

2013-02-24 Thread William J. Cheeseman
On Feb 23, 2013, at 10:01 PM, Graham Cox graham@bigpond.com wrote: When a popover is still anchored to its parent window, the popover view's window is the parent window -- which makes sense, when you think about it, because a popover is just another view in the main window. Are you

Re: Problem with NSDatePicker in popover

2013-02-24 Thread Graham Cox
On 24/02/2013, at 10:16 PM, Bill Cheeseman b...@cheeseman.name wrote: I assume that the change in window is the source of the problem with the date picker's highlighting behavior after the popover is detached. But I don't understand exactly what's happening, or what I can do about it.

Re: [OT] Sync vs ASync Server Comms

2013-02-24 Thread Dave
Hi All, On 22 Feb 2013, at 22:23, Jens Alfke wrote: On Feb 22, 2013, at 8:32 AM, Dave d...@looktowindward.com wrote: Of course there are threading issues Having delegates doesn't stop that There are no threading issues if you don’t create background threads. I’ve written a lot of

Re: NSSavePanel problem

2013-02-24 Thread Eric Gorr
If you attempt to develop a sample application which reproduces the problem, can you do so? If so, making the sample application available might be quite useful in tracking down the problem. On Feb 24, 2013, at 4:26 AM, Peter Hudson peter.hud...@me.com wrote: Here is the code for running the

Re: Problem with NSDatePicker in popover (workaround)

2013-02-24 Thread William J. Cheeseman
On Feb 24, 2013, at 6:33 AM, Graham Cox graham@bigpond.com wrote: If you've done all that and it's still not working as expected, maybe there's a subtle bug in the code that animates between the popover and the new window. This being newish code, it's possible. I've done all that, and

Interpreting glyph layout exception

2013-02-24 Thread Martin Hewitson
Dear list, I maintain an editor app (for LaTeX) and I have a report from a user of strange behaviour when using a particular font (Brill: http://www.brill.com/author-gateway/brill-fonts). The error seems to happen when the user is editing text via more than one NSTextView (multiple editor

Re: Problem with NSDatePicker in popover (workaround)

2013-02-24 Thread William J. Cheeseman
On Feb 24, 2013, at 8:04 AM, William J. Cheeseman wjcheese...@gmail.com wrote: Here's the workaround I came up with, tested in Apple's Popover example but not yet tested in my own application. It works in my own application, too. All is well with the world once again. Thanks for the help.

Re: Problem with NSDatePicker in popover (workaround)

2013-02-24 Thread William J. Cheeseman
On Feb 24, 2013, at 8:04 AM, William J. Cheeseman wjcheese...@gmail.com wrote: Here's the workaround I came up with, tested in Apple's Popover example but not yet tested in my own application. It works in my own application, too. All is well with the world once again. Thanks for the help.

Re: NSSavePanel problem

2013-02-24 Thread Andy Lee
On Feb 24, 2013, at 12:50 AM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: About the only plausible way an app's code might affect something like this, which is straightforwardly deep in NSSavePanel code, might be if there was an accessory view doing something wrong. But even

Re: NSSavePanel problem

2013-02-24 Thread Andy Lee
Okay, you're calling plain old runModal, so that rules out a contextInfo memory management bug. And you don't set a delegate, so that rules out another place to look for bugs. I'm stumped. I'd repeat Eric's suggestion to reduce this to the simplest possible app that reproduces the problem.

Re: NSSavePanel problem

2013-02-24 Thread Peter Hudson
I'll see if I can reproduce this problem in a small app. Many thanks to everyone. Peter On 24 Feb 2013, at 13:35, Andy Lee ag...@mac.com wrote: Okay, you're calling plain old runModal, so that rules out a contextInfo memory management bug. And you don't set a delegate, so that rules out

Re: Problem with NSDatePicker in popover (workaround)

2013-02-24 Thread William J. Cheeseman
On Feb 24, 2013, at 8:25 AM, William J. Cheeseman wjcheese...@gmail.com wrote: On Feb 24, 2013, at 8:04 AM, William J. Cheeseman wjcheese...@gmail.com wrote: Here's the workaround I came up with, tested in Apple's Popover example but not yet tested in my own application. It works

Re: Interpreting glyph layout exception

2013-02-24 Thread Keary Suska
On Feb 24, 2013, at 6:17 AM, Martin Hewitson wrote: Dear list, I maintain an editor app (for LaTeX) and I have a report from a user of strange behaviour when using a particular font (Brill: http://www.brill.com/author-gateway/brill-fonts). The error seems to happen when the user is

Re: NSSavePanel problem

2013-02-24 Thread Peter Hudson
I have built a minimal app in xCode 4.6 ( latest release ) running on 10.8.2 - and naturally the directory popup in the NSSavePanel works perfectly. I started the save panel, as before, with runModal. I have gone back to my main app and stripped the method to practically nothing but setting

Re: NSSavePanel problem

2013-02-24 Thread Kyle Sluder
On Feb 24, 2013, at 8:21 AM, Peter Hudson peter.hud...@me.com wrote: Having spent ( to my horror ) nearly a 100 hours trying to run this to ground, I have decided that our users won't get an option where to put their files. I'll create a directory on the desktop for them and dump any

Re: NSSavePanel problem

2013-02-24 Thread Quincey Morris
On Feb 24, 2013, at 09:10 , Kyle Sluder k...@ksluder.com wrote: If that doesn't clear the problem, try launching your app with the Shift key held down (or turn on Don't restore windows in your Debug scheme's editor, or set the ApplePersistenceIgnoreState default to YES). Good idea. I'd

Re: NSSavePanel problem

2013-02-24 Thread Eric Gorr
It may take more effort to reproduce the problem then just building a minimal app with a NSSavePanel. I have little doubt that works as, if it did not, nearly every application out there would be crashing and they aren't. It will take effort, but you will likely need to replicate the conditions

Dynamic library linking

2013-02-24 Thread ecir hana
Hello, I have a simple program which I can compile but when I tried to link it with a dynamic library the linker is not able to find the library, despite that it is in the same folder as the program. The longer version: I want to embed Python 3.3 interpreter into simple C program. I'm on MacOS

NSButton in NSToolbarItem does not use small size

2013-02-24 Thread Michael Starke
I'm trying to use a toolbar with NSButtons as the views for the toolbar items. I'm creating the views programmatically and ran into the following problem. I add a NSSearchField a NSPopupButton and some NSButtons to the bar by creating a NSToolbarItem and using setView: on them with the

Re: [OT] Sync vs ASync Server Comms

2013-02-24 Thread Mike Abdullah
On 24 Feb 2013, at 12:26, Dave d...@looktowindward.com wrote: Hi All, On 22 Feb 2013, at 22:23, Jens Alfke wrote: On Feb 22, 2013, at 8:32 AM, Dave d...@looktowindward.com wrote: Of course there are threading issues Having delegates doesn't stop that There are no threading

Re: NSSavePanel problem

2013-02-24 Thread Peter Hudson
Well Quincey, your comment on the last line of code here was salient :- NSSavePanel *sp = [NSSavePanel savePanel]; [sp setTitle:@Save as HTML]; [sp setRequiredFileType:@html]; I commented out the setRequiredFileType: and all is well again. As you point out,

Re: Dynamic library linking

2013-02-24 Thread Ken Thomases
On Feb 24, 2013, at 2:09 PM, ecir hana wrote: and running file python33 says: python33 (for architecture i386): Mach-O dynamically linked shared library i386 python33 (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64 The problem I have is that when

Re: Dynamic library linking

2013-02-24 Thread ecir hana
Ken Thomases, Ben Kennedy, thanks for the replies! Yes, I tried libpython33.so, libpython33.dylib, python33.dylib, ... But I still get that error, even if the file is ls -al: -r-xr-xr-x@ 1 ecir staff 5503912 29 sep 10:27 libpython33.so That -v switch is a good advice but I cannot

Inserting UITableViewCell into UITableView without scrolling?

2013-02-24 Thread Laurent Daudelin
Hello. Does anybody have any idea on how to insert cells in a UITableView that is driven by CoreData without causing the table view to scroll if rows are inserted above the currently visible ones? A bit like the Facebook app? Thanks in advance! -Laurent. -- Laurent Daudelin

Re: Dynamic library linking

2013-02-24 Thread Stephen J. Butler
This is an advanced topic which touches on a lot of OS X details. The short of it is, even if you solve your linking problems your Python 3.3 library won't work. What you need to is include the entire Python 3.3 framework in your Application bundle. Once you've figured out how to do that, linking

Re: NSSavePanel problem

2013-02-24 Thread Kyle Sluder
On Feb 24, 2013, at 12:27 PM, Peter Hudson peter.hud...@me.com wrote: I commented out the setRequiredFileType: and all is well again. As you point out, this method is deprecated. I've never come across a deprecated method that malfunctions before…... And it shouldn't! Please

Re: Dynamic library linking

2013-02-24 Thread ecir hana
Marco S Hyman, Stephen J. Butler, thanks a lot! Indeed, stupid me, I was missing -L.. I used to use it (as I copy-pasted above) but somehow when hitting up arrow in terminal I must have accidentally deleted it. Now it links! So to recap, properly naming the library (libpython33.so) and compiling

Re: NSButton in NSToolbarItem does not use small size

2013-02-24 Thread Keary Suska
On Feb 24, 2013, at 1:11 PM, Michael Starke wrote: I'm trying to use a toolbar with NSButtons as the views for the toolbar items. I'm creating the views programmatically and ran into the following problem. I add a NSSearchField a NSPopupButton and some NSButtons to the bar by creating a

Re: NSButton in NSToolbarItem does not use small size

2013-02-24 Thread Kyle Sluder
Perhaps I'm not understanding your post, but On Sun, Feb 24, 2013, at 02:53 PM, Keary Suska wrote: On Feb 24, 2013, at 1:11 PM, Michael Starke wrote: I suspect the issue is that NSButton does not have built-in semantics for control size. NSButton does indeed have built-in semantics for

Re: NSSavePanel problem

2013-02-24 Thread Peter Hudson
As you suggested Kyle, I tried to log this as a bug on bugreporter - but I couldn't log on due to a bug in the log on process. I was directed to a page to advise Apple of my difficulties I'll try again tommorrow. Thanks again Quincy. Peter On 24 Feb 2013, at 21:28, Kyle Sluder

Re: NSButton in NSToolbarItem does not use small size

2013-02-24 Thread Michael Starke
The thing that puzzles me is the difference in the behavior if you use an IB file with the an NSButton as ToolbarItemView. As I said, then everything works as expected - the button changes sized to small or regular control size. Does IB create a custom NSToolbarItem that somehow takes care of

Re: Dynamic library linking

2013-02-24 Thread Boyd Collier
I'm just getting started with python, so I'm certainly not qualified to comment on this specific problem. However, perhaps the following page may be useful to others getting started with python: http://wolfpaulus.com/journal/mac/installing_python_osx The site gives detailed instructions on

Re: NSButton in NSToolbarItem does not use small size

2013-02-24 Thread Keary Suska
On Feb 24, 2013, at 4:05 PM, Kyle Sluder wrote: Perhaps I'm not understanding your post, but On Sun, Feb 24, 2013, at 02:53 PM, Keary Suska wrote: On Feb 24, 2013, at 1:11 PM, Michael Starke wrote: I suspect the issue is that NSButton does not have built-in semantics for control size.

Re: NSButton in NSToolbarItem does not use small size

2013-02-24 Thread Michael Starke
On 25.02.2013, at 02:15, Keary Suska cocoa-...@esoteritech.com wrote: That's not what I am saying. I was understanding that the OP is saying that his popups, for example, are resizing like they would in IB, which means they are also changing their font, which you point out below is documented