Re: NSButton in NSToolbarItem does not use "small size"

2013-02-24 Thread Michael Starke
On 25.02.2013, at 02:15, Keary Suska 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 *not* > to happen, bu

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 si

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 ins

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 th

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 wrote:

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 cont

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 > creat

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 compili

Re: NSSavePanel problem

2013-02-24 Thread Kyle Sluder
On Feb 24, 2013, at 12:27 PM, Peter Hudson 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 file a bug. Hopefu

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

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 AIM/iChat/Skype:La

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 ca

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 t

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

Re: [OT] Sync vs ASync Server Comms

2013-02-24 Thread Mike Abdullah
On 24 Feb 2013, at 12:26, Dave wrote: > Hi All, > > On 22 Feb 2013, at 22:23, Jens Alfke wrote: > >> >> On Feb 22, 2013, at 8:32 AM, Dave wrote: >> >>> Of course there are threading "issues" Having delegates doesn't stop >>> that >> >> There are no threading issues if you don’t create

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 appropria

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 10

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

Re: NSSavePanel problem

2013-02-24 Thread Quincey Morris
On Feb 24, 2013, at 09:10 , Kyle Sluder 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 also try using

Re: NSSavePanel problem

2013-02-24 Thread Kyle Sluder
On Feb 24, 2013, at 8:21 AM, Peter Hudson 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 output into that

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: 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

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 wrote: > On Feb 24, 2013, at 8:04 AM, William J. Cheeseman > 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

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 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 > another pl

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. Also

Re: NSSavePanel problem

2013-02-24 Thread Andy Lee
On Feb 24, 2013, at 12:50 AM, Quincey Morris 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 then, it seems unlikely that > mer

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 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. -- Bill Cheesema

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 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. -- Bill Cheesema

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 win

Re: Problem with NSDatePicker in popover (workaround)

2013-02-24 Thread William J. Cheeseman
On Feb 24, 2013, at 6:33 AM, Graham Cox 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 I believe it is a bu

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 wrote: > Here is the code for running the NSSavePanel. > I r

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 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 code that does network

Re: Problem with NSDatePicker in popover

2013-02-24 Thread Graham Cox
On 24/02/2013, at 10:16 PM, Bill Cheeseman 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. > Well, I haven't t

Re: Problem with NSDatePicker in popover

2013-02-24 Thread William J. Cheeseman
On Feb 23, 2013, at 10:01 PM, Graham Cox 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 sure about that?

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 setTitle:@"