« first day (1159 days earlier)      last day (1269 days later) » 

6:10 PM
what is the difference between frame and bounds
plz tell me first what is frame?
what is bound?
 
Frame is co-ordinate system w.r.t superview
and bounds is w.r.t self's co-ordinates
hence in bounds x,y will always be 0,0
 
@LadduHasADHD
plz tell me briefly
i cant understand correctly
plz dont mind
 
If superview is Parent and subview is Child, then Child's frame is with respect to it's Parent. That is, Child's x and y will be determined from Parent's co-ordinates
 
ok
plz tell me any sample example
like programatically
@LadduHasADHD
 
Can you see the pink square? Suppose it's child view and A B C D square is it's superview.
 
6:16 PM
plz explain me based on these diagram
@LadduHasADHD
 
I mean right co-ordinate box suppose is it's superview
 
Then pink square's frame will be determined from it's superview's coordinates
 
ok then A,B,C,D IS frame?
am i correct?
 
No
I am not getting good diagram to explain
 
6:19 PM
ok
no problem frined.explain me
 
ok wait
 
i will try to understand it
 
ya wait
 
thanks frined
 
21
Q: NSView's bounds vs frame

DavidWhat's the difference between bounds and frame? In fact, why does 'bounds' even exist? The size of 'bounds' is equal to the frame's size, and the bound's origin should always be 0,0.

See the image in that link
 
6:22 PM
sure bro
 
sis
Laddus isn't a bro
 
oh sorry
tell me
i am male
so thats why i am calling bro
ok leaave the topic
 
The image of man
 
i wan to clarify frame and bound
@LadduHasADHD
 
it's frame is determine's from the outer white box's co-ordinate system
 
6:24 PM
ok
 
So if you consider the outer white box's co-ordinate, then where does the man's image x,y is?
 
40,40
am i correct?
 
Yes.
Now answer me this
 
If you consider the co-ordinate system of the man's image as it's own co-ordinate system, then where does it's x,y is?
 
6:26 PM
0,0
am i correct?
 
Are you just saying those from the link answer?
 
yes
 
what?
 
i have one idea
 
what is it?
 
6:27 PM
for example i took one button in view
so the button (x,y,w,h) for ex:(50,60,50,30)
 
No, you answer me this - Suppose inside man's image we put a woman's image. The woman's image's (x,y) is (20,20) from man's co-ordinate system, then what is the woman's (x,y) with respect to the outer box?
 
20,20
?
 
From the outer white box it's again 20,20?
 
yes
 
Haven't you studied basic geometry in school?
 
6:30 PM
i studied
 
How far is the man's x,y from the outer box?
 
hey with respect to outer box womans coordinate system(0,0)
?
 
Man's (x,y) is (40,40) from the outer box's co-ordinate system.
Means it's 40 on X-Axis and 40 on Y.
Woman's (x,y) is (20,20) from the Man's co-ordinate system.
So what is woman's (x,y) from the outer box's co-ordinate system?
 
60,60?
 
Yes
Good
 
6:36 PM
ok
ya tell me
 
So now tell me - What is woman's frame with respect to man's co-ordinate system? Take any width and height for Woman.
When I say with respect to man's co-ordinate system - try to see how far woman is away from man
 
for example man's(x,y) is (100,100)
womans (x,y) is (80,80)
from man's coordinate system
now finally womans co-ordinate system with respect to man (20,20)
am i correct?
 
So what is woman's frame?
 
6:40 PM
fine
 
20,20, someWidth, someHeight
 
yes
correct
 
What is woman's frame with respect to outer box?
 
180,180
 
And what is woman's frame with respect to "it's own" co-ordinate system?
 
6:42 PM
0,0
 
And that's what we call as bounds!
 
its own coordinate system is called bounds
 
frame with respect to one's own co-ordinate system is nothing but bounds
 
yes
 
So in bounds, you will always get x and y as 0
 
6:44 PM
ya
thanks
 
and in frame, x and y will be how far it is away from it's superview's
 
for clarification
 
in bounds, it's how far it's away from itself - which is a common sense answer - 0
 
yes
 
so it's always 0,0
 
6:45 PM
ok
 
ok welcome
 
bounds always 0,0
 
but frame depends on parent's coordinate system
 
but why it's 0,0 is important to know - which you hopefully know now
yes
 
6:46 PM
ok
hi u r there?
@LadduHasADHD
 
thanks friend
 
No issues, you're welcome
 
i hAVE ONE MORE QUESTION
can i ask u?
 
6:49 PM
what is Auto release pool?
explain me clearly
 
It's an area in the memory where all the objects that are sent an autorelease message resides. When the pool goes away, all those objects go away.
That explains why we don't sent release message to objects that are sent an autorelease message.
 
ok
thank u
but i need more clarification about autorelease pool
tomorrow i hope we willl meet
on that time we will discuss on it
 
@LadduHasADHD
 
sure
 
7:01 PM
same time?
 
anytime
 
means u there in afternoon?
@LadduHasADHD
u r from india?
 
Yes
And you?
 
india
ur good name?
r u telugu?
@LadduHasADHD
 
Nope
ippadi irrukae
 
7:07 PM
oh tamil
ok nice
@LadduHasADHD
 
thanks
 
good
ok tomorrow i meet u at afternoon
ok
urs good name plz?
@LadduHasADHD
 
I will tell tomorrow.
My name is Gudiya
 
ok sure
nice name gudiya
 
thanks
 
7:10 PM
ok good night
take care
@LadduHasADHD
 
user457812
8:10 PM
170 messages moved from NSChat
 

« first day (1159 days earlier)      last day (1269 days later) »