Re: Updating NSMenu while it's open

2012-04-20 Thread Ken Thomases
On Apr 18, 2012, at 3:14 PM, vinayak pai wrote: I have a NSMenu with dynamically added NSMenuItems. The NSMenu is not refreshing properly while it's kept open. The NSMenu update method is called in NSRunLoopCommonModes. I think I've answer you in another forum, but you can simply call the

Displaying another page/view on button click

2012-04-20 Thread The Rhythmic
Hi, My apologies if this question sounds so trivial. Am a newbie to iOS development. so, am getting stuck even with the basics. Am using the book 'Beginning iOS 5 development' as a guidance and also google'ing around when I have specific questions this is one question am not able to get clarity

Re: Updating NSMenu while it's open

2012-04-20 Thread Graham Cox
On 20/04/2012, at 3:45 PM, vinayak pai wrote: System's wifi menu updates while it's open. How to update the menu like this? Add a view to the NSMenuItem. Animate the view using a timer, etc. --Graham ___ Cocoa-dev mailing list

Re: uiviewcontroller

2012-04-20 Thread Ariel Feinerman
Julius, what about an ios 4? On Thu, Apr 19, 2012 at 9:11 PM, Julius Oklamcak juli...@icodemonks.comwrote: Have a look at +attemptRotationToDeviceOrientation in iOS 5: http://developer.apple.com/library/ios/documentation/uikit/reference/UIViewC

Re: addsubview

2012-04-20 Thread koko
Good questions. As an experiment, in the same method in which I create and add the subview which is not displaying I create an NSButton using the same frame as for the subview. I add the NSButton and it displays. So, I am sure the NSTabviewItem view is correct. As to the subview, I added a

Re: NSDateFormatter problem

2012-04-20 Thread Keary Suska
On Apr 20, 2012, at 6:08 AM, Lorenzo Thurman wrote: On Apr 19, 2012, at 10:18 PM, Keary Suska wrote: Perhaps this excerpt from the API doc is key: Do not use these constants if you want an exact format. Why, might be academic, but if you require a specific style, you may want to specify

Re: addsubview

2012-04-20 Thread koko
Here is the code that creates and adds the subview The method -makeAndWrapViews is in the custom class of the NSTabViewItem view. I do get -viewDidMoveToSuperview when addSubview is called. When the tab is clicked I do get viewdidMoveToWindow But I never see thev iew! -

Re: NSDateFormatter problem

2012-04-20 Thread Charles Srstka
On Apr 20, 2012, at 9:32 AM, Keary Suska wrote: Is there a way to reset the Language and Text Preferences? Is there an associated Preferences I can throw away? I think it is part of com.apple.systempreferences.plist in ~/Library/Preferences. You can test that by dragging it to the desktop

Re: addsubview

2012-04-20 Thread koko
I have searched high and low and can find no reason for a subview to not display. Is this a trivial problem not worthy of list comment or is it truly a difficult problem that cannot be dealt with as easily as more mundane topics found here? Can you hear my cry for help ... this makes no sense