Re: Xcode warns about missing protocol definition, even though @protocol is used

2012-05-03 Thread Florian Pilz
are not given in the header file (but may be added in the implementation file -- therefore a warning rather an error). Is there a flag to disable such a warning? Best wishes Florian Am Montag, 16 April 2012 um 23:28 schrieb Uli Kusterer: > On 16.04.2012, at 23:03, Florian Pilz wrote: >

Re: How can I prevent UITableViewRowAnimationAutomatic to slide down my UISearchBar?

2012-05-03 Thread Florian Pilz
you scroll the header view into the visible part of the screen. This also prevent row animations from sliding the table below an offset of (44, 0) and the "slide to top" command will slide the table view to an offset of (44, 0). Am Donnerstag, 19 April 2012 um 08:11 schrieb Florian Pilz: &

How can I prevent UITableViewRowAnimationAutomatic to slide down my UISearchBar?

2012-04-18 Thread Florian Pilz
I have figured out how to hide the SearchBar when my view appears, so it will be hidden unless you scrolled it down and only used modal dialogues. However, if I add or delete a row from my table, the search bar slides into the visible part of the view, due to the animation triggered. Is it possi

Re: Xcode warns about missing protocol definition, even though @protocol is used

2012-04-16 Thread Florian Pilz
st be known, however it's imported there so that shouldn't be an issue. -- Florian Pilz On Monday, 16 April 2012 at 23:28, Uli Kusterer wrote: > On 16.04.2012, at 23:03, Florian Pilz wrote: > > The import is done in the ".m"-file of HomeTableViewController. But I just

Re: Xcode warns about missing protocol definition, even though @protocol is used

2012-04-16 Thread Florian Pilz
ViewController.h: #import @protocol NewFooControllerDelegate; // warning points to line below @interface HomeTableViewController : UITableViewController @end On Saturday, 14 April 2012 at 19:00, Kyle Sluder wrote: > On Apr 14, 2012, at 5:55 AM, Florian Pilz wrote: >

Xcode warns about missing protocol definition, even though @protocol is used

2012-04-14 Thread Florian Pilz
Since I had a import-cycle recently, I'm moving all #import statements (concerning my own files) from the header into the corresponding .m-file. I also added @class and @protocol forward-declarations to soothe the compiler. However, I still get he following warning: Cannot find the protocol

How can I eliminate the delay between pressing a global shortcut and the reaction of the triggered background process?

2011-07-31 Thread Florian Pilz
I recently wrote a utility program called WindowTiler which moves around the currently focused window using global shortcuts. If I just started WindowTiler or used it recently everything is fine, but if the program idled for some time in the background the next call via a global shortcut will need

Re: "About" menu item is greayed out.

2011-05-23 Thread Florian Pilz
You probably removed the connection from the "About" MenuItem to File's Owner to call the method "orderFrontStandardAboutPanel:". If that is the case, the menu item will be grayed out since no action is associated with it. Recreating this connection should help. :) 2011/5/21 JAMES ROGERS > IB In

Re: Access main window of other Applications

2011-04-17 Thread Florian Pilz
Descriptor2); [scriptObject2 release]; Best wishes Florian PS: The solution using the Accessibility API can be found here: http://stackoverflow.com/questions/1730859/controlling-osx-windows 2011/4/11 Peter Lübke > > Am 11.04.2011 um 16:20 schrieb Florian Pilz: > > @Eric: I don't s

Re: Global Shortcuts

2011-04-17 Thread Florian Pilz
ementation, the Carbon methods fit perfectly. 2011/4/17 Dave DeLong : > > On Apr 16, 2011, at 2:57 PM, Bavarious wrote: > >> On 16 Apr 2011, at 13:02, Eric Schlegel wrote: >>> On Apr 16, 2011, at 2:59 AM, Florian Pilz wrote: >>> >>>> However the C

Global Shortcuts

2011-04-16 Thread Florian Pilz
I am searching for the 'modern' way to define global shortcuts. I searched for it and found all over the web, that the old Carbon API should be used, because it's way more convenient than using NSEvent. However the Carbon API for global shortcuts (RegisterEventHotKey) is marked as 'Legacy'. I am n

Access main window of other Applications

2011-04-07 Thread Florian Pilz
Hi there! I'm looking for an easy way to access the main window of another Application, thus not my own. (The key window would be fine as well, if that is easier.) I already searched via Google to solve this task and I found the following solutions: * use AppleScript to perform this task and inte