IB Scroll View position problem
I have two scroll views in my application, each with a table view, in addition to a bunch of other items. Everything is locked to the upper left corner of the window view. When the window is resized, I would like the scroll views to expand and shrink along with the window. The smaller scroll view is located on the left, near the middle of the window, is fixed width and and extends down to the bottom of the window. Everything is fine as long as the window expands and shrinks to a vertical size no smaller than the original size. However, if I make the window smaller, vertically, then the scroll view assumes a vertical position that is higher in the window than the original location. In IB in the scroll view size, autosizing box, I have the top, left, and bottom constraints and only the vertical resize constraint. I think this may be a bug. IB version is 3.0 (629). Thanks All. ___ 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)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Special Characters Edit Menu Item
David, I think there must be a way since this menu item doesn¹t show up in my Entourage compose mail window.To be honest, I never noticed this before. It seems to me that there are many cases where special characters are not appropriate. If it really bothered me I guess I would try to delete all the menu items at windowDidLoad or some such and then repopulate. I searched the archives and found no useful information on how to remove the Special Characters menu item from the edit menu. There is no sure fire way to remove this menu item. ___ 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)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Next Key View doesn't go to pushbutton
You could override the controlTextDidEndEditing method: - (void)controlTextDidEndEditing:(NSNotification *)aNotification{ ... if([[[aNotification userInfo] valueForKey:@NSTextMovement] intValue] == NSReturnTextMovement) { // invoke whatever button pressed code. } } This can be advantageous if you allow empty fields. The user can use the enter key while the cursor is in any field instead of tabbing all the way to the button. You can also check for NSTabTextMovement or NSBacktabTextMovement if you want to do any processing between fields. On 10/07/08 2:02 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Next Key View doesn't go to pushbutton ___ 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)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1
The ³.mm² extension is required for source that contains both C++ and Objective-C, thus called Objective-C++. Not required for pure C++ source. A couple ideas: 1. Be sure to add the C++ source files to your target. (ie, look for the checkmark in the target column) 2. Any objective-c source that creates C++ declared objects also must have the ³.mm² extension and must include the C++ header files. I'm relatively new programming ObjectiveC and Cocoa, and I'm trying to add some C++ code to my existing ObjectiveC/Cocoa code using Xcode 3.1. I have my C++ files in a separate .mm files (as the documentation says to), and my C++ headers are in a xxx.h file. When building the code, I keep getting my C++ 'class' and everything associated with it as undefines. ___ 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)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Oracle and Objective C++
I'm having difficulty importing data from an Oracle database into a Cocoa application. I've installed the Oracle client and OCCI examples. The example occidml.cpp seemed to make and run just fine from the command line. Now, I would like to get some data from Oracle into my Cocoa application but I'm stuck. Since the Oracle header files are for C++ programs I thought an objective C++ solution would be the easiest. With obvious credit due to Oracle engineers, my header file starts off like: #import Cocoa/Cocoa.h #include iostream #include occi.h using namespace oracle::occi; using namespace std; class occiCon { private: Environment *env; Connection *conn; Statement *stmt; public: occiCon (string user, string passwd, string db){ env = Environment::createEnvironment (Environment::DEFAULT); conn = env-createConnection (user, passwd, db); } ~occiCon () { env-terminateConnection (conn); Environment::terminateEnvironment (env); } But I get the following errors when I try to compile it. Line Location occiAQ.h:280: error: 'oracle::occi::aq::Subscription::Protocol' has a previous declaration here Line Location occiAQ.h:280: error: 'oracle::occi::aq::Subscription::Protocol' has a previous declaration here Line Location occiAQ.h:320: error: 'oracle::occi::aq::Subscription::Protocol' referred to as 'struct' Line Location occiAQ.h:321: error: 'oracle::occi::aq::Subscription::Protocol' referred to as 'struct' Looking at Oracle's header file: occiAQ.h in the area of line 280: ___ 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)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]