WebFrameView类参考

WebFrameView类参考

继承
NSView    NSResponder    NSObject的
符合
框架
/系统/资源库/框架/  WebKit.framework
可用性
在Mac OS X v10.2时可使用Safari 1.0和更高版本。
可用在Mac OS X v10.2.7和更高版本。
同伴指导
申报的
WebFrameView.h    
  WebFrameView 对象及其子视图显示的网页内容包含在框架中。   你永远不创建 直接 WebFrameView 实例—— WebView 对象创建和管理WebFrameView 对象,为每个框架。  WebFrameView 对象使用一个滚动视图,它的文档视图符合WebDocumentView 协议。

任务

获取Web框架

使用子视图

设置滚动

打印视图

  • – canPrintHeadersAndFooters
  • – printOperationWithPrintInfo:
  • – documentViewShouldHandlePrint
  • – printDocumentView
  • Instance Methods

    allowsScrolling

    Returns a Boolean value indicating whether users can scroll.

    - (BOOL)allowsScrolling

    Return Value

    YES   if the receiver allows users to scroll; otherwise,  NO .

    Availability
    • Available in Mac OS X v10.2 with Safari 1.0 and later.
    • Available in Mac OS X v10.2.7 and later.
    Declared In
    WebFrameView.h

    canPrintHeadersAndFooters

    Returns a Boolean value indicating whether the receiver can print headers and footers.

    - (BOOL)canPrintHeadersAndFooters

    Return Value

    YES   if the receiver can print headers and footers; otherwise,  NO .

    Availability
    • Available in Mac OS X v10.4.11 and later.
    Declared In
    WebFrameView.h

    documentView

    Returns the subview that displays the web content.

    - (NSView <  WebDocumentView   > *)documentView

    Return Value

    The subview that displays the web content.

    Discussion

    Use  setAllowsScrolling:   to enable scrolling of this view.

    Availability
    • Available in Mac OS X v10.2 with Safari 1.0 and later.
    • Available in Mac OS X v10.2.7 and later.
    Declared In
    WebFrameView.h

    documentViewShouldHandlePrint

    Returns a Boolean value indicating whether the document view should handle a print operation.

    - (BOOL)documentViewShouldHandlePrint

    Return Value

    YES   if the document view should handle the print operation; otherwise,  NO .

    Discussion

    If this method returns  NO , the application terminates its print operation and sends  printDocumentView   to the web frame view.

    Availability
    • Available in Mac OS X v10.4.11 and later.
    Declared In
    WebFrameView.h

    printDocumentView

    Prints the receiver.

    - (void)printDocumentView

    Discussion

    This method is invoked if the  documentViewShouldHandlePrint   method returns  NO .

    Availability
    • Available in Mac OS X v10.4.11 and later.
    Declared In
    WebFrameView.h

    printOperationWithPrintInfo:

    Returns a print operation object to print this frame.

    - (NSPrintOperation   *)printOperationWithPrintInfo:(NSPrintInfo   *)printInfo

    Parameters
    printInfo

    Information about the print settings needed to print this frame. See  NSPrintInfo Class Reference   for more information about this object.

    Return Value

    An  NSPrintOperation   object set up to print this frame. See  NSPrintOperation Class Reference   for more information about this object.

    Availability
    • Available in Mac OS X v10.4.11 and later.
    Declared In
    WebFrameView.h

    setAllowsScrolling:

    Sets whether the frame view should allow users to scroll.

    - (void)setAllowsScrolling:(BOOL)flag

    Parameters
    flag

    If  YES , scrolling is allowed; if  NO , it is not. If the frame contains a scrolling element, then that value is used as the default; otherwise, the default is  YES .

    Availability
    • Available in Mac OS X v10.2 with Safari 1.0 and later.
    • Available in Mac OS X v10.2.7 and later.
    Declared In
    WebFrameView.h

    webFrame

    Returns the web frame.

    - (WebFrame   *)webFrame

    Return Value

    The web frame.

    Availability
    • Available in Mac OS X v10.2 with Safari 1.0 and later.
    • Available in Mac OS X v10.2.7 and later.
    Declared In
    WebFrameView.h

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值