CPPredicateEditor Issue

32 views
Skip to first unread message

Dawood Sangameshwari

unread,
Nov 24, 2011, 11:27:48 PM11/24/11
to objec...@googlegroups.com
Hi,
I am trying to use CPPredicateEditor ( added to view using IB). Everything is working fine, except when i add more rows using + button in CPPredicateEditor on browser, scrollbars doesn't appear. it adds new rows but scrollbars don't.
How do i make my window ( displayed using beginSheet) grow as user goes on adding rows to CPPredicateEditor?
</Dawood>

Randy Luecke

unread,
Nov 25, 2011, 12:01:52 AM11/25/11
to Cappuccino & Objective-J
The rule editors inherit from CPView, so you just need to put it in a
scrollview like you would any other view.

Dawood Sangameshwari

unread,
Nov 25, 2011, 12:47:01 AM11/25/11
to objec...@googlegroups.com
I used IB to add CPPredicateEditor so its enclosed in scroll view. Scroll view appears on browser but not scrollers.
</Dawood>

--
You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
To post to this group, send email to objec...@googlegroups.com.
To unsubscribe from this group, send email to objectivej+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/objectivej?hl=en.


Dawood Sangameshwari

unread,
Nov 25, 2011, 1:19:36 AM11/25/11
to objec...@googlegroups.com
what i found out is, scroll bars appear while sheet is loading or unloading. but scroll bars disappear once sheet is loaded.
</Dawood>

On 25-Nov-2011, at 10:31 AM, Randy Luecke wrote:

mik...@gmail.com

unread,
Nov 25, 2011, 1:35:47 AM11/25/11
to Cappuccino & Objective-J
Do they re-appear if you place the cursor over the scroll view and
move the scroll wheel? Cappuccino now has Mac OS X Lion style
scrollbars by default which autohide after the scrollview stops
moving. They also appear when the scrollview is first rendered and
then fade. There is an API on CPScrollView to revert this to the
classic style if you prefer. Perhaps this is what you are seeing?

Dawood Sangameshwari

unread,
Nov 25, 2011, 1:38:24 AM11/25/11
to objec...@googlegroups.com
no, they don't. I can see scrollbars while sheet is loading or unloading (i.e. when its sliding down or up). but once sheet is at its final position, no scroll bars.
</Dawood>

Dawood Sangameshwari

unread,
Nov 27, 2011, 6:24:15 AM11/27/11
to objec...@googlegroups.com
i had to set frameSize of [scrollView docuementView] whenever there is change in CPPredicateEditor
</Dawood>

On 25-Nov-2011, at 12:05 PM, mik...@gmail.com wrote:

Randy Luecke

unread,
Nov 28, 2011, 9:59:05 AM11/28/11
to Cappuccino & Objective-J
Sounds like the predicate editor is being added as a subview of the
document view, instead of as the document view itself.

On Nov 27, 6:24 am, Dawood Sangameshwari <daw...@dawood.in> wrote:
> i had to set frameSize of [scrollView docuementView] whenever there is change in CPPredicateEditor
> </Dawood>
>

Dawood Sangameshwari

unread,
Nov 28, 2011, 10:10:55 PM11/28/11
to objec...@googlegroups.com
I added CPPredicateEditor from IB, so scrollview was added by default. let me check it though.
</Dawood>

cacaodev

unread,
Dec 9, 2011, 9:23:03 AM12/9/11
to objec...@googlegroups.com
Hi,

I just uploaded this patch, tell me if it works for you: https://github.com/cappuccino/cappuccino/pull/1414

cacaodev.

Dawood Sangameshwari

unread,
Dec 9, 2011, 9:27:44 AM12/9/11
to objec...@googlegroups.com
thanks. will check and revert back.
</Dawood>

Randy Luecke

unread,
Dec 9, 2011, 8:54:40 PM12/9/11
to Cappuccino & Objective-J
If it works, please comment on the pull request saying so.

- Randy

On Dec 9, 9:27 am, Dawood Sangameshwari <daw...@dawood.in> wrote:
> thanks. will check and revert back.
> </Dawood>
>
> On 09-Dec-2011, at 7:53 PM, cacaodev wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I just uploaded this patch, tell me if it works for you:https://github.com/cappuccino/cappuccino/pull/1414
>
> > cacaodev.
>
> > Le 25 nov. 2011 à 05:27, Dawood Sangameshwari a écrit :
>
> >> Hi,
> >>        I am trying to use CPPredicateEditor ( added to view using IB). Everything is working fine, except when i add more rows using + button in CPPredicateEditor on browser, scrollbars doesn't appear. it adds new rows but scrollbars don't.
> >>        How do i make my window ( displayed using beginSheet) grow as user goes on adding rows to CPPredicateEditor?
> >> </Dawood>
>
> >> --
> >> You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
> >> To post to this group, send email to objec...@googlegroups.com.
> >> To unsubscribe from this group, send email to objectivej+...@googlegroups.com.

> >> For more options, visit this group athttp://groups.google.com/group/objectivej?hl=en.

Reply all
Reply to author
Forward
0 new messages