NSData *source = // whatever NSRange myRange = // whatever NSData *subrangeOfSource = [source subdataWithRange: myRange];
On May 18, 2013, at 3:00 PM, cocoa-dev-requ...@lists.apple.com wrote: > Send Cocoa-dev mailing list submissions to > cocoa-dev@lists.apple.com > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.apple.com/mailman/listinfo/cocoa-dev > or, via email, send a message with subject or body 'help' to > cocoa-dev-requ...@lists.apple.com > > You can reach the person managing the list at > cocoa-dev-ow...@lists.apple.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Cocoa-dev digest..." > > > Today's Topics: > > 1. Re: Trigger nextkeyview based on NSTextField input length > (Jaime Magiera) > 2. UIView embedded in UIScrollView hides scroll indicators ? > (Koen van der Drift) > 3. Re: UIView embedded in UIScrollView hides scroll indicators ? > (Marcelo Alves) > 4. Re: UIView embedded in UIScrollView hides scroll indicators ? > (Koen van der Drift) > 5. Re: UIView embedded in UIScrollView hides scroll indicators ? > (David Duncan) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 18 May 2013 00:53:24 -0400 > From: Jaime Magiera <ja...@sensoryresearch.net> > To: CocoaDev dev <cocoa-dev@lists.apple.com> > Subject: Re: Trigger nextkeyview based on NSTextField input length > Message-ID: <ec829b09-95d2-4531-88bf-afa0ddf19...@sensoryresearch.net> > Content-Type: text/plain; charset=us-ascii > > On May 17, 2013, at 11:03 PM, Kyle Sluder <k...@ksluder.com> wrote: > >> So rather than the four-field approach, why not use _one_ text field with an >> NSFormatter subclass that adds and removes the dashes in the license code? >> Then you get all the text handling behavior users expect for free. > > > Very wise. Thanks Kyle. > > Jaime Magiera > > Sensory Research, Inc. > http://www.sensoryresearch.net > > > > ------------------------------ > > Message: 2 > Date: Sat, 18 May 2013 13:43:02 -0400 > From: Koen van der Drift <koenvanderdr...@gmail.com> > To: Cocoa Dev <cocoa-dev@lists.apple.com> > Subject: UIView embedded in UIScrollView hides scroll indicators ? > Message-ID: > <CAF8z=hdb4mga6wiea3stj_6yp_c-01jr18cv6c1235ncxfe...@mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > In IB I created an UIView embedded in an UIScrollView. They both fill up > the screen and are 320 px wide. Scrolling works just fine, but the scroll > indicators are invisible. I triple checked the checkboxes in IB, and both > "Scrolling Enabled" and "Shows Vertical Scrollers" are on. To be super > sure I added this to my VC: > > self.scrollView.scrollEnabled = YES; > > self.scrollView.showsVerticalScrollIndicator = YES; > > I tried making the UIView a little less wide (300px), but I still don't see > the scroll indicators. > > What did I miss to make them appear? > > Thanks, > > - Koen. > > > ------------------------------ > > Message: 3 > Date: Sat, 18 May 2013 14:50:19 -0300 > From: Marcelo Alves <marcelo.al...@me.com> > To: Cocoa Dev <cocoa-dev@lists.apple.com> > Subject: Re: UIView embedded in UIScrollView hides scroll indicators ? > Message-ID: <d96ff59d-bb48-4e31-b8c7-be1a50c0d...@me.com> > Content-Type: text/plain; charset=us-ascii > > > Did you forgot to set the contentSize for the UIScrollView? > > > On 18/05/2013, at 14:43, Koen van der Drift <koenvanderdr...@gmail.com> wrote: > >> In IB I created an UIView embedded in an UIScrollView. They both fill up >> the screen and are 320 px wide. Scrolling works just fine, but the scroll >> indicators are invisible. I triple checked the checkboxes in IB, and both >> "Scrolling Enabled" and "Shows Vertical Scrollers" are on. To be super >> sure I added this to my VC: >> >> self.scrollView.scrollEnabled = YES; >> >> self.scrollView.showsVerticalScrollIndicator = YES; >> >> I tried making the UIView a little less wide (300px), but I still don't see >> the scroll indicators. >> >> What did I miss to make them appear? >> >> Thanks, >> >> - Koen. > > > > > ------------------------------ > > Message: 4 > Date: Sat, 18 May 2013 14:28:18 -0400 > From: Koen van der Drift <koenvanderdr...@gmail.com> > To: Marcelo Alves <marcelo.al...@me.com> > Cc: Cocoa Dev <cocoa-dev@lists.apple.com> > Subject: Re: UIView embedded in UIScrollView hides scroll indicators ? > Message-ID: > <CAF8z=heusyktzny_uye-12cwbrqn4jh7hzepncudtoxaa+2...@mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > Yes, I did, but I may have made a mistake. I have this in viewDidLoad: > > self.scrollView.contentSize = CGSizeMake(320, self.myView.frame.size.height > + self.tabBarController.tabBar.frame.size.height); > > I also found that if I add either > > self.scrollView.bounds = self.view.bounds; or self.scrollView.frame = > self.view.frame; > > I do see the scrollbar, but the content myView is cut off on the right > side. > > > So, then I decided to ditch my XIB and to create the two views in my VC, > and presto, it works! > > - Koen. > > > On Sat, May 18, 2013 at 1:50 PM, Marcelo Alves <marcelo.al...@me.com> wrote: > >> >> Did you forgot to set the contentSize for the UIScrollView? >> >> >> On 18/05/2013, at 14:43, Koen van der Drift <koenvanderdr...@gmail.com> >> wrote: >> >>> In IB I created an UIView embedded in an UIScrollView. They both fill up >>> the screen and are 320 px wide. Scrolling works just fine, but the >> scroll >>> indicators are invisible. I triple checked the checkboxes in IB, and both >>> "Scrolling Enabled" and "Shows Vertical Scrollers" are on. To be super >>> sure I added this to my VC: >>> >>> self.scrollView.scrollEnabled = YES; >>> >>> self.scrollView.showsVerticalScrollIndicator = YES; >>> >>> I tried making the UIView a little less wide (300px), but I still don't >> see >>> the scroll indicators. >>> >>> What did I miss to make them appear? >>> >>> 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/koenvanderdrift%40gmail.com >> >> This email sent to koenvanderdr...@gmail.com >> > > > ------------------------------ > > Message: 5 > Date: Sat, 18 May 2013 11:42:15 -0700 > From: David Duncan <david.dun...@apple.com> > To: Koen van der Drift <koenvanderdr...@gmail.com> > Cc: Cocoa Dev <cocoa-dev@lists.apple.com> > Subject: Re: UIView embedded in UIScrollView hides scroll indicators ? > Message-ID: <bcd72fdf-8b0c-478b-860a-eb0ef55d8...@apple.com> > Content-Type: text/plain; charset=us-ascii > > On May 18, 2013, at 11:28 AM, Koen van der Drift <koenvanderdr...@gmail.com> > wrote: > >> Yes, I did, but I may have made a mistake. I have this in viewDidLoad: >> >> self.scrollView.contentSize = CGSizeMake(320, self.myView.frame.size.height >> + self.tabBarController.tabBar.frame.size.height); >> >> I also found that if I add either >> >> self.scrollView.bounds = self.view.bounds; or self.scrollView.frame = >> self.view.frame; > > Neither of these variations are really correct. Bounds is the internal > coordinate system, frame is the external coordinate system. I suspect what > you really want is self.scrollView.frame = self.view.bounds. > >> >> I do see the scrollbar, but the content myView is cut off on the right >> side. >> >> >> So, then I decided to ditch my XIB and to create the two views in my VC, >> and presto, it works! >> >> - Koen. >> >> >> On Sat, May 18, 2013 at 1:50 PM, Marcelo Alves <marcelo.al...@me.com> wrote: >> >>> >>> Did you forgot to set the contentSize for the UIScrollView? >>> >>> >>> On 18/05/2013, at 14:43, Koen van der Drift <koenvanderdr...@gmail.com> >>> wrote: >>> >>>> In IB I created an UIView embedded in an UIScrollView. They both fill up >>>> the screen and are 320 px wide. Scrolling works just fine, but the >>> scroll >>>> indicators are invisible. I triple checked the checkboxes in IB, and both >>>> "Scrolling Enabled" and "Shows Vertical Scrollers" are on. To be super >>>> sure I added this to my VC: >>>> >>>> self.scrollView.scrollEnabled = YES; >>>> >>>> self.scrollView.showsVerticalScrollIndicator = YES; >>>> >>>> I tried making the UIView a little less wide (300px), but I still don't >>> see >>>> the scroll indicators. >>>> >>>> What did I miss to make them appear? >>>> >>>> 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/koenvanderdrift%40gmail.com >>> >>> This email sent to koenvanderdr...@gmail.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/david.duncan%40apple.com >> >> This email sent to david.dun...@apple.com > > -- > David Duncan > > > > > ------------------------------ > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins (at) lists.apple.com > > https://lists.apple.com/mailman/listinfo/cocoa-dev > > > End of Cocoa-dev Digest, Vol 10, Issue 307 > ****************************************** > _______________________________________________ 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