clearing a webview after use
In my application (OSX) I implemented an NSPopover that displays a webview to show more info on a a particular item in my model (which are listed in an NSTableView). So the user doubleclicks the table, and the popover appears and shows the website related to that item. I implemented back and forward buttons in case the user wants to browse through the view in the popover. When the popover closes, I call: setMaintainsBackForwardList:NO for the webview to clear the history, because I don't want that to be available when the webview is opened for another item. So far so good, this all works very well. Now when the user opens the popover for another item, I often first see the previous page that was shown in the webview, which doesn't look right to me. Is there a way to empty or clear a webview when I close the popover, so that next time it is opened it doesn't show the previous page? I don't want to clear the cache, because when the webview is opened for an item that was already selected, it can be loaded from the cache. - Koen. ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Debugging NSWindowController and NSArrayController
Hi, I have an NSWindowController that creates an instance of NSManagedObjectContext. That window controller loads a NIB that has a table populated by an NSArrayController bound to the MOC in the window controller. This was done via Interface Builder. The array controller is set to retrieve Entities of type X. On the init method of my window controller I add an object of type X to the MOC and I can see it's there because I can fetch it on windowDidLoad but for some reason the array controller on the NIB doesn't see any data. If I fire up gdb and do *po [arrayController arrangedObjects]* I get an empty array. Is there any other way of debugging this? -- Rui Pacheco ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
UINavigationBar appearance not updating
I want to give a hint in my app whether you are or are not using iCloud. As most screens have a navigation bar, I thought that changing the tint color of that would be a nice visual effect, it's not bad, not sure I'm fine with it yet but working on it. To do it I'm using the UIAppearance protocol, here's the method which does the work. -(void)updateTintsForICloud { BOOL usingICloud = [ [ HIPSettings sharedSettings ] usingICloud ]; [ [ UINavigationBar appearance ] setTintColor:usingICloud ? [ UIColor colorWithRed:0 green:0 blue:.3 alpha:1.0f ] : [ UIColor clearColor ] ]; } Not too complicated. This runs on iPhone and iPad. On iPhone the screen which switches between iCloud and local is a full-screen modal popover. It covers over what is currently displayed on the screen (the navigation stack) and at the end it eventually calls updateTintsForICloud on exit. Works fine, when the nav stack re-shows on-screen the navigation bar has been updated to the new tint. On iPad it's the same view, but it's presented as a modal formsheet, so the nav stack behind it dims but continues to display and the form sheet shows up as a box in the middle of the screen. The same logic follows, updateTintsForICloud is still called, the UINavigationBar appearance is changed but .. it doesn't actually update the on-screen nav bar, nor any subsequent navbar pushes. My assumption is that the difference is with iPad the old navigation bar stays on-screen, albeit dimmed, and so doesn't re-draw and pick up the new defaults, with iPhone it is totally covered up and so gets a redraw when it uncovers. Is there a method I've missed which tells UIAppearance to update currently visible elements, or do I have to write some code to update any currently showing nav bar with the current tint hint? I have perused the stuff about UIAppearance but it's quite thin and not totally helpful. ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: clearing a webview after use
On 11 Apr 2012, at 7:51 AM, Koen van der Drift wrote: > Is there a way to empty or clear a webview when I close the popover, > so that next time it is opened it doesn't show the previous page? I > don't want to clear the cache, because when the webview is opened for > an item that was already selected, it can be loaded from the cache. What works for me on iOS is having the UIWebView load about:blank. Maybe it works the same in Mac OS. — F ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Question about hebrew in textfields and textviews
Dear Cocoa-devs, Working with a person using hebrew input method. Text appears right-to-left as desired, but all of the textfields and textviews are still left justfiied, so it looks a little weird. Is there something I need to do so that when users are using Arabic or Hebrew everything justifies the other way? --Matthew Weinstein ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: -[NSURL path] "If the path has a trailing slash it is stripped"
On 10 Apr 2012, at 01:05, Jerry Krinock wrote: > > On 2012 Apr 09, at 16:07, Mike Abdullah wrote: > >> The docs are incorrect about the escaping behaviour (and used to be for >> CFURLCopyPath too); both functions do not do escaping >> > > Ah, I was reading Xcode 3 documentation. > > In current documentation, CFURLCopyStrictPath() still has the ambiguity, but > CFURLCopyPath() has been corrected. It says, unambiguously, "nor does it > replace percent escape sequences". > > So, yes I agree with you Mike – I presume that your rdar is against the > *documentation* of CFURLCopyStrictPath(). The *behavior* of both > CFURLCopyStrictPath() and CFURLCopyPath() is correct. At least, it's what I > want :) Yes, it is against the docs. They fixed CFURLCopyPath()'s docs because of my original radar, but stupidly left the other in place. Please dupe 10561176 to get it fixed faster. ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: -[NSURL path] "If the path has a trailing slash it is stripped"
On 10 Apr 2012, at 00:52, Jerry Krinock wrote: > > On 2012 Apr 09, at 16:01, Mike Abdullah wrote: > >> Can you tell us why you want the trailing slash maintained? > > I use it in a method which normalizes internet URLs. > > (I hate URL normalization, but my app must work with web browsers that do it, > in various ways.) > >> Pretty much all path-based APIs on OS X ignore such slashes, so I'm assuming >> you want it for another reason. > > Yes. > >> There may be a better API we can suggest. > > Let me know if so. May I interest sir in https://github.com/karelia/KSFileUtilities/blob/url-normalization/KSURLNormalization.h ? ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Question about hebrew in textfields and textviews
On Apr 11, 2012, at 9:36 AM, Matthew Weinstein wrote: > Working with a person using hebrew input method. Text appears right-to-left > as desired, but all of the textfields and textviews are still left justfiied, > so it looks a little weird. Is there something I need to do so that when > users are using Arabic or Hebrew everything justifies the other way? I believe there is an expectation that you use localized xibs. If you are, have you specified the correct justification in the xib? If you don't need localized xibs, you may be able to get the desired behavior by calling the method -setBaseWritingDirection:, although there may be other and better ways. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Question about hebrew in textfields and textviews
On 11 Apr 2012, at 10:36 AM, Matthew Weinstein wrote: > Working with a person using hebrew input method. Text appears right-to-left > as desired, but all of the textfields and textviews are still left justfiied, > so it looks a little weird. Is there something I need to do so that when > users are using Arabic or Hebrew everything justifies the other way? Assuming you're on Mac OS, all the relevant classes have, or inherit, a -setAlignment: method, to which you can pass NSNaturalTextAlignment. In Interface Builder, the dotted-line segment in the alignment control does the same thing. — F ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Question about hebrew in textfields and textviews
Try NSNaturalTextAlignment - Original Message - From: "Keary Suska" To: "Matthew Weinstein" Cc: cocoa-dev@lists.apple.com Sent: Wednesday, April 11, 2012 9:54:50 AM Subject: Re: Question about hebrew in textfields and textviews On Apr 11, 2012, at 9:36 AM, Matthew Weinstein wrote: > Working with a person using hebrew input method. Text appears right-to-left > as desired, but all of the textfields and textviews are still left justfiied, > so it looks a little weird. Is there something I need to do so that when > users are using Arabic or Hebrew everything justifies the other way? I believe there is an expectation that you use localized xibs. If you are, have you specified the correct justification in the xib? If you don't need localized xibs, you may be able to get the desired behavior by calling the method -setBaseWritingDirection:, although there may be other and better ways. HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/lrucker%40vmware.com This email sent to lruc...@vmware.com ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
AVQueuePlayer
Hi, I'm working on Lion-application that uses AVQueuePlayer to play a list of video-files, that should seemlessly play as if they're one large movie. i was thinking AVQueuePlayer would be able to do this out of the box, by feeding it AVPlayerItems (as they become available) while playing. The result however is not what i expected; Sound seems to play fine, without any (noticable?) hickups, but the video-image is very unstable: It starts-out displaying fine, but it freezes when switching between items, sometimes for several seconds, and then it all of a sudden fast-forwards to catch-up with the sound again. The video's that are being played are local files of very modest resolutiuon/bitrate (480x272 @ 25fps - ± 2Mbit/s) i don't receive any notifications indicating that something is wrong. A timeobserver attached to the player reports the time correctly, also during video-freezes. Am i overlooking something obvious? What's going wrong? thanks, arri ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Debugging NSWindowController and NSArrayController
On Apr 11, 2012, at 7:04 AM, Rui Pacheco wrote: > Hi, > > I have an NSWindowController that creates an instance of > NSManagedObjectContext. That window controller loads a NIB that has a table > populated by an NSArrayController bound to the MOC in the window > controller. This was done via Interface Builder. The array controller is > set to retrieve Entities of type X. > > On the init method of my window controller I add an object of type X to the > MOC and I can see it's there because I can fetch it on windowDidLoad but > for some reason the array controller on the NIB doesn't see any data. If I > fire up gdb and do *po [arrayController arrangedObjects]* I get an empty > array. > > Is there any other way of debugging this? Is "Prepares content" checked? Is "Uses lazy fetching" checked? Do you have a predicate specified, and does the object match the predicate? What happens when you tell the array controller to -fetch:? HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Question about hebrew in textfields and textviews
Thanks for all the replies. Unfortunately NSNaturalTextAlignment doesn't seem to affect the justification of the textfields. Try creating a simple project and simply put a textfield and textview in the window in MainMenu.xib. Changing the input to hebrew, running the program does change the text to LTR but it's still justfied on the wrong side. --Matthew ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Question about hebrew in textfields and textviews
On Apr 11, 2012, at 10:17 AM, Matthew Weinstein wrote: > Thanks for all the replies. Unfortunately NSNaturalTextAlignment doesn't seem > to affect the justification of the textfields. Try creating a simple project > and simply put a textfield and textview in the window in MainMenu.xib. > Changing the input to hebrew, running the program does change the text to LTR > but it's still justfied on the wrong side. Changing the input method or changing the system language? These are two different things. --Kyle Sluder ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Debugging NSWindowController and NSArrayController
Prepares content is checked, Uses lazy fetching is not - setting it doesn't change anything. I called -fetch: on gdb and the result was nil. managedObjects returns an empty array. On 11 April 2012 19:12, Keary Suska wrote: > On Apr 11, 2012, at 7:04 AM, Rui Pacheco wrote: > > > Hi, > > > > I have an NSWindowController that creates an instance of > > NSManagedObjectContext. That window controller loads a NIB that has a > table > > populated by an NSArrayController bound to the MOC in the window > > controller. This was done via Interface Builder. The array controller is > > set to retrieve Entities of type X. > > > > On the init method of my window controller I add an object of type X to > the > > MOC and I can see it's there because I can fetch it on windowDidLoad but > > for some reason the array controller on the NIB doesn't see any data. If > I > > fire up gdb and do *po [arrayController arrangedObjects]* I get an empty > > array. > > > > Is there any other way of debugging this? > > > Is "Prepares content" checked? Is "Uses lazy fetching" checked? Do you > have a predicate specified, and does the object match the predicate? What > happens when you tell the array controller to -fetch:? > > HTH, > > Keary Suska > Esoteritech, Inc. > "Demystifying technology for your home or business" > > -- Rui Pacheco ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Cocoaheads Lake Forest CA meeting tonight
CocoaHeads Lake Forest will be meeting on the second Wednesday of the month. We will be meeting at the Orange County Public Library (El Toro) community room, 24672 Raymond Way, Lake Forest, CA 92630 Please join us from 7pm to 9pm on Wednesday, 4/11 Tonight we will both discuss the new iPad/iOS 5 and will be coding further on our app, plus the usual discussion on what might be coming in June. Thanks go to OReilly for offering a user group discount, and review copies of a variety of books. If you are willing to provide a review, please let me know and I will request one. As always, details can be found on the cocoaheads web site atwww.cocoaheads.org. Scott ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Debugging NSWindowController and NSArrayController
On Apr 11, 2012, at 11:49 AM, Rui Pacheco wrote: > Prepares content is checked, Uses lazy fetching is not - setting it doesn't > change anything. I called -fetch: on gdb and the result was nil. > managedObjects returns an empty array. Have you verified that the array controller is using the same MOC that you use in your -init and -windowDidLoad? > On 11 April 2012 19:12, Keary Suska wrote: > On Apr 11, 2012, at 7:04 AM, Rui Pacheco wrote: > > > Hi, > > > > I have an NSWindowController that creates an instance of > > NSManagedObjectContext. That window controller loads a NIB that has a table > > populated by an NSArrayController bound to the MOC in the window > > controller. This was done via Interface Builder. The array controller is > > set to retrieve Entities of type X. > > > > On the init method of my window controller I add an object of type X to the > > MOC and I can see it's there because I can fetch it on windowDidLoad but > > for some reason the array controller on the NIB doesn't see any data. If I > > fire up gdb and do *po [arrayController arrangedObjects]* I get an empty > > array. > > > > Is there any other way of debugging this? > > > Is "Prepares content" checked? Is "Uses lazy fetching" checked? Do you have a > predicate specified, and does the object match the predicate? What happens > when you tell the array controller to -fetch:? Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Debugging NSWindowController and NSArrayController
Yep. po managedObjectContext and po [arrayController managedObjectContext] returns the same address. On 11 April 2012 21:41, Keary Suska wrote: > On Apr 11, 2012, at 11:49 AM, Rui Pacheco wrote: > > > Prepares content is checked, Uses lazy fetching is not - setting it > doesn't change anything. I called -fetch: on gdb and the result was nil. > managedObjects returns an empty array. > > Have you verified that the array controller is using the same MOC that you > use in your -init and -windowDidLoad? > > > On 11 April 2012 19:12, Keary Suska wrote: > > On Apr 11, 2012, at 7:04 AM, Rui Pacheco wrote: > > > > > Hi, > > > > > > I have an NSWindowController that creates an instance of > > > NSManagedObjectContext. That window controller loads a NIB that has a > table > > > populated by an NSArrayController bound to the MOC in the window > > > controller. This was done via Interface Builder. The array controller > is > > > set to retrieve Entities of type X. > > > > > > On the init method of my window controller I add an object of type X > to the > > > MOC and I can see it's there because I can fetch it on windowDidLoad > but > > > for some reason the array controller on the NIB doesn't see any data. > If I > > > fire up gdb and do *po [arrayController arrangedObjects]* I get an > empty > > > array. > > > > > > Is there any other way of debugging this? > > > > > > Is "Prepares content" checked? Is "Uses lazy fetching" checked? Do you > have a predicate specified, and does the object match the predicate? What > happens when you tell the array controller to -fetch:? > > Keary Suska > Esoteritech, Inc. > "Demystifying technology for your home or business" > > -- Rui Pacheco ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: clearing a webview after use
On Apr 11, 2012, at 10:36 AM, Fritz Anderson wrote: > On 11 Apr 2012, at 7:51 AM, Koen van der Drift wrote: > >> Is there a way to empty or clear a webview when I close the popover, >> so that next time it is opened it doesn't show the previous page? I >> don't want to clear the cache, because when the webview is opened for >> an item that was already selected, it can be loaded from the cache. > > What works for me on iOS is having the UIWebView load about:blank. Maybe it > works the same in Mac OS. > > — F > This also works on Mac OSX, thanks. - Koen. ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Leaks in UIPanGestureRecognizer?
I seem to be seeing a leak way down deep inside UIPanGestureRecognizer handling. The offending caller is strdup. There seems to be one of these for every pan gesture I do. # Address CategoryEvent Type RefCt Timestamp Size Responsible Library Responsible Caller 0 0xcded160 Malloc 48 Bytes Malloc 1 00:20.127.201 48 libsystem_c.dylib strdup 0 libsystem_c.dylib malloc 1 libsystem_c.dylib strdup 2 libnotify_sim.dylib token_table_add 3 libnotify_sim.dylib notify_register_mach_port 4 libnotify_sim.dylib notify_register_dispatch 5 CoreFoundation _CFXNotificationRegisterObserver 6 CoreFoundation CFNotificationCenterAddObserver 7 UIKit -[UIScrollView(Static) _startTimer:] 8 UIKit -[UIScrollView _endPanWithEvent:] 9 UIKit -[UIScrollView handlePan:] 10 UIKit _UIGestureRecognizerSendActions 11 UIKit -[UIGestureRecognizer _updateGestureWithEvent:] 12 UIKit -[UIGestureRecognizer _delayedUpdateGesture] 13 UIKit ___UIGestureRecognizerUpdate_block_invoke_0541 14 UIKit _UIGestureRecognizerApplyBlocksToArray 15 UIKit _UIGestureRecognizerUpdate 16 UIKit -[UIWindow _sendGesturesForEvent:] 17 UIKit -[UIWindow sendEvent:] 18 UIKit -[UIApplication sendEvent:] 19 UIKit _UIApplicationHandleEvent 20 GraphicsServices PurpleEventCallback 21 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ 22 CoreFoundation __CFRunLoopDoSource1 23 CoreFoundation __CFRunLoopRun 24 CoreFoundation CFRunLoopRunSpecific 25 CoreFoundation CFRunLoopRunInMode 26 GraphicsServices GSEventRunModal 27 GraphicsServices GSEventRun 28 UIKit UIApplicationMain 29 MyApp main /Users/rmann/MyCompany/repo/MyApp/MyApp/main.m:16 30 MyApp start ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Tracking down a strange SIGABRT
I've got a stange situation that just started happening on one of my devices and only on this device. Not using ARC (yet), no memory leaks. Thread one gets a SIGABRT when I load a view, but only on this one device (IPod Touch Gen3) running iOS 5.0.1. It was working fine all day, then it just started happening. I've narrowed it down to the display of a view and will continue to debug, but I am curious about how this happens only on one device. I've tested this on two other iPods and iPhones and the 5.0 simulator running 5.0.1 and they display the view without a problem. Crash logs are not being written out. Annnd I just restarted the device and all is fine. Something must be leaking somewhere. Hm. ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Tracking down a strange SIGABRT
On Apr 11, 2012, at 8:27 PM, Alex Zavatone wrote: > I've got a stange situation that just started happening on one of my devices > and only on this device. > > Not using ARC (yet), no memory leaks. > > Thread one gets a SIGABRT when I load a view, but only on this one device > (IPod Touch Gen3) running iOS 5.0.1. It was working fine all day, then it > just started happening. I've narrowed it down to the display of a view and > will continue to debug, but I am curious about how this happens only on one > device. > > I've tested this on two other iPods and iPhones and the 5.0 simulator running > 5.0.1 and they display the view without a problem. > > Crash logs are not being written out. > > Annnd I just restarted the device and all is fine. Something must be leaking > somewhere. Hm. Could be an uninitialized variable. You may have been getting a garbage value that caused a crash on the one device because that's what was in memory, but on other devices (and the one device after a restart) getting a different value that doesn't cause a crash. Run the static analyzer against your code. Regards, Ken ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AVQueuePlayer ( stuttering/freezing - dissapointing playback )
HI Rob, thanks for your input! Yes, all files are identical. And no, i'm not 'manually' preloading/-rolling anything (is that possible at all?) And i was asuming that AVQueuePlayer would be doing this automatically... Basically AVPlayer already does what i want when it plays live an HTTP-stream from a m3u8 playlist with '.ts' segment-files. I have thought of the option of 'serving' a local '.m3u8' playlist containing the video files, but that seems a bit odd to me .. and it could possibly introduce a ton of new problems. gr arri On Wed, Apr 11, 2012 at 9:49 PM, Robert Martin wrote: > I'm a patzer, not an expert - but a couple of thoughts occurred: > > Are all files the same dimensions and compressed identically? > > There's also probably some latency in opening and pre-rolling a movie - d= epending on the codec. Are you pre-buffering? (Loading and setting up the n= ext movie when the current one starts) > > > > On Apr 11, 2012, at 1:00 PM, arri wrote: > >> Hi, >> >> >> I'm working on Lion-application that uses AVQueuePlayer to play a list >> of video-files, >> that should seemlessly play as if they're one large movie. >> >> i was thinking AVQueuePlayer would be able to do this out of the box, >> by feeding it >> AVPlayerItems (as they become available) while playing. >> >> The result however is not what i expected; >> Sound seems to play fine, without any (noticable?) hickups, but the vide= o-image >> is very unstable: It starts-out displaying fine, but it freezes when >> switching between >> items, sometimes for several seconds, and then it all of a sudden >> fast-forwards to >> catch-up with the sound again. >> >> The video's that are being played are local files of very modest >> resolutiuon/bitrate >> (480x272 @ 25fps - =C2=B1 2Mbit/s) >> i don't receive any notifications indicating that something is wrong. >> A timeobserver attached to the player reports the time correctly, also d= uring >> video-freezes. >> >> Am i overlooking something obvious? What's going wrong? >> >> >> thanks, >> arri >> >> ___ >> >> 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: >> https://lists.apple.com/mailman/options/cocoa-dev/robmartin%40frontierne= t.net >> >> This email sent to robmar...@frontiernet.net > ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Leaks in UIPanGestureRecognizer?
On Apr 11, 2012, at 3:42 PM, Rick Mann wrote: > I seem to be seeing a leak way down deep inside UIPanGestureRecognizer > handling. The offending caller is strdup. There seems to be one of these for > every pan gesture I do. You're not the first one to notice -- I've seen several reports of the same thing. File a Radar, and mention this one: http://openradar.appspot.com/11081198 -- Kurt Revis kre...@snoize.com ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Leaks in UIPanGestureRecognizer?
Thanks, Kurt. Filed: 11234294. On Apr 11, 2012, at 22:47 , Kurt Revis wrote: > On Apr 11, 2012, at 3:42 PM, Rick Mann wrote: > >> I seem to be seeing a leak way down deep inside UIPanGestureRecognizer >> handling. The offending caller is strdup. There seems to be one of these for >> every pan gesture I do. > > You're not the first one to notice -- I've seen several reports of the same > thing. > > File a Radar, and mention this one: > http://openradar.appspot.com/11081198 > > -- > Kurt Revis > kre...@snoize.com > ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
How to use AEKeyword for sending mail from the application?
Hi, Iam using web kit framework and NSAppleEventDescriptor to send a mail from the application. Iam able to put the subject in the mail using AEKeyword 'urln' But I do not know which AEKeyword has to be used to set Recipient address in the TO Field of the mail. Kindly help me with this. Regards, Nithish ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
A question about core data.
Hello, I have started a billing project with coco and core data. In my project, I have a form that the user must fill to add a customer (for example) but it seems that core data have only an array controller with a manage object context to manage the core data database. Is it true ? In some language (such as java), I can send some sql query to the database. such as (insert into Customeer etc..), I can also send a set of query (transaction). On the apple website, in a guide, I have reed an information about fetch request How it work ? Can the fetch request help me in my project ? Tanks for your help ? Best regards mparchet ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Networking and sleep
I have an app which attempts to make an internet connection after receiving an NSWorkspaceDidWake notification. Most of the time, the connection fails with the error, "...internet connection appears to be offline (-1009)". My guess is the the OS has not yet reinitialized networking before my app attempts to connect. So I added a sleepForInterval:10 to make my app wait a bit before connecting. This seems to work just fine, but question is: Is there a more elegant way to handle this? TIA Lorenzo Thurman lore...@thethurmans.com ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Question about hebrew in textfields and textviews
First of all, it's true that having fields with natural directionality will give you the proper runtime directionality (RTL/LTR) depending on the language in which the user is typing. To my knowledge, that doesn't affect the alignment (left/right), even if it would make sense for it to do so. If your app is not localized (i.e., you're just allowing text input, not actually providing a fully translated interface), you'll need to change the alignment based on the currently selected language. Is this what you are aiming for? Aviah Morag amo...@apple.com On 11 באפריל 2012, at 10:26, Kyle Sluder wrote: > On Apr 11, 2012, at 10:17 AM, Matthew Weinstein wrote: > >> Thanks for all the replies. Unfortunately NSNaturalTextAlignment doesn't >> seem to affect the justification of the textfields. Try creating a simple >> project and simply put a textfield and textview in the window in >> MainMenu.xib. Changing the input to hebrew, running the program does change >> the text to LTR but it's still justfied on the wrong side. > > Changing the input method or changing the system language? These are two > different things. > > --Kyle Sluder > ___ > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/amorag%40apple.com > > This email sent to amo...@apple.com ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com